chown: Change the ownership of files or directories
Usage: chown [-ADPrRtTh-] userid file1 [ file2 ... ]
chown will change the ownership of NTFS files or directories
to the specified user. chown will not run under Windows 9x.
The userid may be specified as either a simple name or as a
machine\name pair. (Warning: specifying a name on another
machine can take several seconds for network handshaking.)
The userid is omitted when using the -R, -t or -T options.
To use this command to take ownership for yourself, you must
have this right:
Take ownership of files or other objects
If you would like to grant ownership to another userid, you
must also have this right:
Restore files and directories
These rights can be granted via the User Manager.
Options:
-A Add an access control entry to any access
control lists, granting full access to the
new owner.
-D Default ACL, inheriting from the parent but
adding an ACE allowing full access to the
new owner.
-P Private. Add an ACL to each file allowing
full access to the new owner but no access
to anyone else.
-r Recursive. If any of the paths specified
is a directory, chown will recursively walk
through the entire directory tree, changing
the ownership of all the contents.
-R Remove any ACL. The userid argument is
omitted. (Warning: a null ACL grants full
access to everyone and cannot be edited with
the Microsoft cacls command.) The userid
argument is omitted.
-t Take. Change the ownership to the same as
that of the current process. If you are
running elevated as an Administrator, ownership
will be taken in the name of that group.
(This is so that Administrators can easily
share files.) The userid argument is omitted.
-T Take ownership in your own name, even if you
running elevated as an Administrator. The
userid argument is omitted.
-h Help. (This screen.)
-- End of options.
|