chgrp(1)chgrp(1)Namechgrp - change file group
Syntaxchgrp [ -fR ] group file...
Description
The command changes the group ID of one or more files or directories.
For file, you may specify either a full or partial path. For group,
you may specify either a decimal GID or a group name found in the group
file.
The user entering the command must either be the superuser, or be the
owner of the file and belong to the specified group.
Options-f Inhibits display of errors that are returned if fails to change
the group identifier of a file.
-R Causes to recursively descend any directories subordinate to file
and to set the specified group for each file encountered. When
symbolic links are encountered, changes the group identifier of
the link file but does not traverse the path associated with the
link.
Examples
Change group to admin for filea and fileb:
chgrp admin filea fileb
Files
See Also
chown(2), group(5), group(5yp), passwd(5),
passwd(5yp)chgrp(1)