CHOWN(1) | User Commands | CHOWN(1) |
chown, chgrp - change owner or group
chown [-hHLPR] owner[:group] file ...
chgrp [-hHLPR] group file ...
Chown changes the owner of the files to owner, and, if group is present, the group-ID of the files to group. Both owner and group may be either a decimal UID / GID or a login / group name found in the password file.
Chgrp changes the group-ID of the files to group. The group may be either a decimal GID or a group name found in the group-ID file.
Both chown and chgrp accept the following options:
The following options have been introduced by POSIX.1-2001:
/etc/passwd
/etc/group
chown(2), passwd(5), group(5)
Permission to change owner and group is based either on historical System V behaviour, which is to allow the owner of the file or a privileged user a change to any value; or on historical BSD behaviour, which is to restrict changing the owner to a privileged user and changing the group to a group to which the file owner belongs.
The [:group] argument to chown has been introduced with POSIX.2 and is not available on older implementations of System V.
1/29/05 | Heirloom Toolchest |