Search Chirayu Software Solutions Blog

Tuesday, May 20, 2014

Setting Security Permissions To Folders using DOS Prompt

As of Vista, cacls is deprecated. Here's the first couple of help lines:
C:>cacls
NOTE: Cacls is now deprecated, please use Icacls.
Displays or modifies access control lists (ACLs) of files
You should use icacls instead. This is how you grant John full control over D:\test folder and all its subfolders:
C:>icacls "D:\test" /grant John:(OI)(CI)F
According do MS documentation:
  • F= Full Control
  • CI= Container Inherit - This flag indicates that subordinate containers will inherit this ACE.
  • OI= Object Inherit - This flag indicates that subordinate files will inherit the ACE.
Post a Comment