Originally posted by plp626 at 2009-9-13 03:17:
Is my requirement contradictory?!
It should not be contradictory. Just set permissions for directories and files separately.
I don't know how to use xcacls, I use setAcl
The shortcoming is that the second point "cut to" cannot be implemented.
Explanation: Among them, D:\test is the parent directory of the directory to be obtained, and target is the directory to be obtained.
Related post: http://bbs.bathome.cn/thread-3670-1-1.html
set "sup_dir=D:\test"
set "tar_dir=%sup_dir%\target"
md "%tar_dir%"
SetACL.exe -on "%sup_dir%" -ot file^
-actn clear -clr "dacl,sacl"^
-actn ace -ace "n:everyone;p:list_dir;i:sc;m:set"^
-actn setprot -op "dacl:p_nc;sacl:p_nc"
SetACL.exe -on "%tar_dir%" -ot file^
-actn clear -clr "dacl,sacl"^
-actn ace -ace "n:everyone;p:list_dir,del_child,read_ea;i:sc,so;m:set"^
-ace "n:everyone;p:add_file,add_subdir;i:sc;m:grant"
Originally , but still keep it, so I won't delete it.
[
Last edited by wxcute on 2009-9-18 at 07:54 ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
| plp626 |
+5 |
2009-09-19 02:13 |
┌───────┐
├→学习→实践→┤
└───────┘