# HG changeset patch # User Oleksandr Gavenko # Date 1320010484 -7200 # Node ID d06823550de7f9a29439850b2a42b4639721fe36 # Parent d6170ebe9f7cf34d0c88c2f02e230e94ec16764c takeown /r /f %file% diff -r d6170ebe9f7c -r d06823550de7 windows.rst --- a/windows.rst Thu Oct 27 21:39:23 2011 +0300 +++ b/windows.rst Sun Oct 30 23:34:44 2011 +0200 @@ -420,6 +420,10 @@ Change NTFS permission. ======================= + http://support.microsoft.com/kb/919240 + The Icacls.exe utility is available for Windows Server 2003 with + Service Pack 2 + Change NTFS permission with 'icacls'. ------------------------------------- @@ -436,6 +440,10 @@ cmd> icacls %dir% /setowner %user% /t /c +or simply:: + + cmd> takeown /r /f %file% + Recursively grand full access for everyone:: cmd> icacls %dir% /t /grant:r %user%:(f)