windows 我用这条 icacls 行得到无效参数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3269058/
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
I get Invalid parameter with this icacls line
提问by Aksedir
icacls d:\users\dptname\username /grant:W company-domain\username:(OI)(CI)(M)
icacls d:\users\dptname\username /grant:W company-domain\username:(OI)(CI)(M)
error says: invalid paramter "/grant:W"
错误说:无效参数“/grant:W”
why?
为什么?
回答by Woot4Moo
grant:W
is not valid because the only valid switch is
无效,因为唯一有效的开关是
grant:r
赠款:r
or no switch at all. From the documentation
或者根本没有开关。从文档
With :r the permissions replace any previously granted explicit permissions.
Without :r the permissions are added to any previously granted explicit permissions
使用 :r 权限替换任何先前授予的显式权限。
没有 :r 权限将添加到任何先前授予的显式权限
回答by Aksedir
I got it. company-domain\username should be in quotation marks...
我知道了。公司域\用户名应该用引号引起来...