2012年6月5日

Reset ACL (Ownership and Permission) in Windows 7

I got trouble with Cygwin 1.7 in Windows7 when I create directory.  The ACL (Ownership and Permission) of that created directory was changed to unwanted settings.  If we only need the default ACL which like what we do in Windows Explorer, below command may be helpful.

icacls /T /Q /C /RESET

NOTE:


  • /T - Performs the operation on all specified files in the current directory and its subdirectories.
  • /C - Continues the operation despite any file errors. Error messages will still be displayed
  • /Q - Suppresses success messages.
  • /RESET - Replaces ACLs with default inherited ACLs for all matching files.
Reference: Icacls

沒有留言:

發佈留言