Previous Topic: chfile Command—Modify UNIX File SettingsNext Topic: chusr Command—Modify UNIX Users


chgrp Command—Modify UNIX Groups

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:

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

Note: 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. CA ControlMinder does not allow a group ID of zero.

groupName

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