chgrp Command Purpose Changes the group ownership of a file or directory. Syntax chgrp [ -f ] [ -R ] Group { File ... | Directory ... } Description The chgrp command changes the group associated with the specified file or directory to the specified group name or group ID number. Flags -f Suppresses all error reporting. -R Causes the chgrp command to descend recursively through its directory arguments, setting the specified group ID. When sym- bolic links are encountered, the group ownership of the file or directory pointed to by the link is changed. The ownership of the symbolic link is not changed and the directory is not traversed. Examples To change the group ownership of the file or directory named proposals to staff: chgrp staff proposals The group access permissions for proposals now apply to the staff group. Implementation Specifics This command is part of Base Operating System (BOS) Runtime. Files /usr/bin/chgrp The chgrp command. /etc/group File that identifies all known groups. Related Information The groups command, chown command. The chown, fchown, chownx, or fchownx subroutine. Understanding File and Directory Access Modes in AIX Version 3.2 System Management Guide: Operating System and Devices introduces file ownership and permissions to access files and directories. Security Introduction in AIX Version 3.2 System Management Guide: Operating System and Devices describes system security.