August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/chown [-fhR] owner[:group] file...
Use the chown (change owner) command to change the user ID of files that you own. You can also optionally change the group ID with this command. If chown is used by somebody other than the superuser, the setuser-ID bit is cleared.
Only the owner of a file (or the superuser) can change the owner of that file.
The operating system has a configuration option, {_POSIX_CHOWN_RESTRICTED}, to restrict ownership changes. When this option is in effect, even the owner of the file cannot change the owner ID of the file. Only the superuser can arbitrarily change owner IDs regardless of whether this option is in effect. To set the {_POSIX_CHOWN_RESTRICTED} ...
Read now
Unlock full access