August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/chgrp [-fhR] group file
You can use the chgrp command to change the group that owns a file, provided that you own the file and are a member of the group that owns it. The chgrp command sets the group ID of the file named by each file operand to the group ID specified by the group operand.
For each file operand, chgrp performs actions equivalent to the chown(2) function, called with the following arguments:
The file operand is used as the path argument.
The user ID of the file is used as the owner argument.
The specified group ID is used as the group argument.
Unless chgrp is invoked by a process with appropriate privileges, the set-user-ID and set-group-ID bits of a regular ...
Read now
Unlock full access