Change file group ownership (POSIX)
chgrp [-R] [-v] group file...
The chgrp utility lets you change the group ownership of one or more files. For each file you name, chgrp sets the file's group ID to that specified by the group argument.
If you invoke chgrp with the -R option, and chgrp attempts but fails to change the group ID of a particular file in a specified file hierarchy, it continues to process the remaining files in the hierarchy.
|You must be root or the owner of the file in order to change its group ownership. The underlying filesystem might impose further restrictions. For example, the QNX 4 filesystem sets the _PC_CHOWN_RESTRICTED configuration variable; for more information, see pathconf() in the Neutrino Library Reference.|
Change the group of myfile to 27:
chgrp 27 myfile
Change the group of myfile to technical:
chgrp technical myfile
Entries in this file appear in the following format:
chmod, chown, find ... -chgrp
Working with Files in the Neutrino User's Guide