chown — Change File Ownership

Synopsis

/usr/bin/chown [-fhR] owner[:group] file... 

Description

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} ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.