chgrp Command Modify UNIX Groups
Valid in the native UNIX environment
capamsc141
Valid in the native UNIX environment
Use the chgrp, editgrp, and newgrp commands to work with UNIX groups. These commands are identical in structure and only vary in the following way:
- The chgrp commandmodifiesone or more UNIX groups.
- The editgrp commandcreates or modifiesone or more UNIX groups.
- The newgrp commandcreatesone or more UNIX groups.
Groups are read, added, updated, and deleted from the file specified in the configuration settings (seos.ini); by default, this file is /etc/group. For more information, see the
Endpoint Administration Guide for UNIX
. This command also exists in the AC environment but operates differently.
This command has the following format:
{{chgrp|cg}|{editgrp|eg}|{newgrp|ng}} groupName \
[groupid(integer)] \ [userlist(userNames)]
- groupid(integer)Sets the group ID of the group. Enter a positive integer representing the group's unique numeric ID.PAM Server Controldoes not allow a group ID of zero.
- groupNameSpecifies the name of the group to be modified. Specify the name of an existing UNIX group. When altering more than one group, enclose the list of group names in parentheses and separate group names with a space or a comma.
- userlist(userNames)Specifies a new member list. Each user name must already be defined to UNIX. When more than one user is in the list, separate the user names with a space or comma. The user list specified here replaces any previous user list defined to the group.