GROUPMOD(8) | Maintenance Commands and Procedures | GROUPMOD(8) |
groupmod - modify a group definition on the system
/usr/sbin/groupmod [-g gid [-o]] [-n name] group
The groupmod command modifies the definition of the specified group by modifying the appropriate entry in the /etc/group file.
The following options are supported:
-g gid
-n name
-o
The following operands are supported:
group
The groupmod utility exits with one of the following values:
0
2
3
4
6
9
10
/etc/group
group(5), attributes(7), groupadd(8), groupdel(8), logins(8), useradd(8), userdel(8), usermod(8)
The groupmod utility only modifies group definitions in the /etc/group file. If a network name service is being used to supplement the local /etc/group file with additional entries, groupmod cannot change information supplied by the network name service. The groupmod utility will, however, verify the uniqueness of group name and group ID against the external name service.
groupmod fails if a group entry (a single line in /etc/group) exceeds 2047 characters.
January 7, 2018 | OmniOS |