takeown /r /f %file%
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 30 Oct 2011 23:34:44 +0200
changeset 1071 d06823550de7
parent 1070 d6170ebe9f7c
child 1072 3c71ac964185
takeown /r /f %file%
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)