Intergrity Control Access Control List: 完整性权限控制列表 Windows系统下控制文件及文件夹的访问权限的命令行指令,相当于Linux中的chmod 原命令cacls已经被废弃。
InstanceOpen 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). - 递归传递权限
LinkMicrosoft Doc: https://technet.microsoft.com/en-us/library/cc753525(v=ws.11).aspx