windows 如何让 iCacls 在文件夹级别授予访问权限,以便可以继承?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/884132/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I make iCacls grant access at the folder level so it can be inherited?
提问by codepoke
Using the command:
使用命令:
iCACLS.exe \server\serverroot\siteroot /grant:r domain\id:RX /T /C
I can grant access to every file within the site root folder, but the folder itself does not receive the access. The problem being any new file that gets added lacks the read access until the command is run again. What am I not understanding?
我可以授予对站点根文件夹中每个文件的访问权限,但文件夹本身没有获得访问权限。问题是添加的任何新文件都缺乏读取访问权限,直到再次运行该命令。我不明白什么?
回答by codepoke
The reason the folder itself does not receive the access is because I did not tell iCacls I wanted it to make the access inheritable. The command should be:
文件夹本身没有收到访问权限的原因是我没有告诉 iCacls 我希望它使访问权限可继承。命令应该是:
iCACLS.exe \server\serverroot\siteroot /grant:r domain\id:(OI)(CI)(RX) /T /C
Does exactly what I need (and for predictable reasons. I like that.)
正是我需要的(出于可预见的原因。我喜欢那样。)