chgrp — Change File Group Ownership

Synopsis

/usr/bin/chgrp [-fhR] group file
					

Description

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 ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.