知方号

知方号

icacls: Windows命令行授权文件访问权限

icacls

Intergrity Control Access Control List: 完整性权限控制列表 Windows系统下控制文件及文件夹的访问权限的命令行指令,相当于Linux中的chmod 原命令cacls已经被废弃。

Instance

Open Windows Command Line: Win + R > Input ‘cmd’

Format: icacls "C:MyFolder" /grant Users:FInstance: C:>icacls "D: est" /grant Everyone:(OI)(CI)F /T MS documentation:

1, F = Full Control - 777

2, CI = Container Inherit - This flag indicates that subordinate containers will inherit this ACE. - 子文件夹继承父文件夹权限

3, OI = Object Inherit - This flag indicates that subordinate files will inherit the ACE. - 子文件继承父文件夹权限

4, /T = Apply recursively to existing files and sub-folders. (OI and CI only apply to new files and sub-folders). - 递归传递权限

Link

Microsoft Doc: https://technet.microsoft.com/en-us/library/cc753525(v=ws.11).aspx

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lizi9903@foxmail.com举报,一经查实,本站将立刻删除。