what is the command for change ownership

  • Thread starter Thread starter jg
  • Start date Start date
J

jg

from command prompt how would one change ownership of a file or folder?
I know I can use cacls to change permission but have not found the command
equiv. to chown nor chgrp
 
jg said:
from command prompt how would one change ownership of a file or folder?
I know I can use cacls to change permission but have not found the command
equiv. to chown nor chgrp


The subinacl command line tool can change ownership of files, folders, and
registry keys.

Download and install subinacl from:
http://www.microsoft.com/downloads/...56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en

An example for a file would be.

subinacl /file %systemdrive%\filename.txt /owner=username
 
Back
Top