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 95. 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.) 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. (Allows full access to the owner, Administators and the System and read/write access to Everyone.) -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. (Warning: a null ACL grants full access to everyone and cannot be edited with the Microsoft cacls command.) -t Take. Change the ownership to the same as that of the current process. If you are a member of the Administrators group, 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 are a member of the Administrators group. The userid argument is omitted. -h Help. (This screen.) -- End of options.
Previous Utility |
List of External Utilities
| Next Utility
Table of Contents
Copyright © 1988-2003 by
Hamilton Laboratories.
All rights reserved.