JSI Tip 3528. How do I set ownership and manage permissions from the command line or in a batch?
Jerold Schulman
March 28, 2001
1 Min Read
In tip 3494, we used the GUI in Windows 2000 to assign ownership of folder. Our choice of owners was very limited.
In Windows NT 4.0 you can grant the permission to take ownership, but you can't directly set ownership.
Using the SubInAcl update, you can set ownership on a folder using the following syntax:
subinacl /subdirectories /setowner=
To set ownership for all the objects:
subinacl /subdirectories *.* /setowner=
To see permissions on the folder and its' objects, use the CACLS command:
cacls /t /e /g :
where can be one of the following:
R Read
W Write
C Change (write)
F Full control
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like