what is the command for change ownership

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
 
W

WTC

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top