| manpages.info - online man pages | ![]() |
|||
|
chgrp (1) Table of Contents
Namechgrp - change group
Synopsischgrp [-fhv] [-R [-H | -L | -P]] group file ...
DescriptionThe chgrp utility sets the group ID of the file named by each file operand to the group ID specified by the group operand.
The following options are available:
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's actions are determined by the last one specified.
The group operand can be either a group name from the group database, or a numeric group ID. If a group name is also a numeric group ID, the operand is used as a group name.
The user invoking chgrp must belong to the specified group and be the owner of the file, or be the super-user.
DiagnosticsThe chgrp utility exits 0 on success, and >0 if an error occurs.
CompatibilityIn previous versions of this system, symbolic links did not have groups.
The -v option is non-standard and its use in scripts is not recommended.
Files/etc/group group ID file
See Alsochown(2) , fts(3) , group(5) , passwd(5) , symlink(7) , chown(8)
StandardsThe chgrp utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
|