chown

Name

chown -- change file access permissions

Synopsis

chown [OPTION]... OWNER[:[GROUP]] FILE...
chown [OPTION]... :GROUP FILE...
chown [OPTION]... --reference=RFILE FILE...

Description

The specification for "chown" is as specified in the SUS but with the following differences as listed below.

Differences

-c, --changes

like verbose but report only when a change is made

--dereference

affect the referent of each symbolic link, rather than the symbolic link itself

-h, --no-dereference

affect symbolic links instead of any referenced file (available only on systems that can change the ownership of a symlink)

--from=CURRENT_OWNER:CURRENT_GROUP

change the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute.

-f, --silent, --quiet

suppress most error messages

--reference=RFILE

use RFILE's owner and group rather than the specified OWNER:GROUP values

-v, --verbose

output a diagnostic for every file processed

--version

output version information and exit

Note

The use of the '.' character as a separator between the specification of the user name and group name is supported (in addition to the use of the ':' character as specified in the SUS).