1GROUPMOD(8)               System Management Commands               GROUPMOD(8)
2
3
4

NAME

6       groupmod - modify a group definition on the system
7

SYNOPSIS

9       groupmod [options] GROUP
10

DESCRIPTION

12       The groupmod command modifies the definition of the specified GROUP by
13       modifying the appropriate entry in the group database.
14

OPTIONS

16       The options which apply to the groupmod command are:
17
18       -g, --gid GID
19           The group ID of the given GROUP will be changed to GID.
20
21           The value of GID must be a non-negative decimal integer. This value
22           must be unique, unless the -o option is used. Values between 0 and
23           999 are typically reserved for system groups.
24
25           Any files that have the old group ID and must continue to belong to
26           GROUP, must have their group ID changed manually.
27
28       -h, --help
29           Display help message and exit.
30
31       -n, --new-name NEW_GROUP
32           The name of the group will be changed from GROUP to NEW_GROUP name.
33
34       -o, --non-unique
35           When used with the -g option, allow to change the group GID to a
36           non-unique value.
37
38       -p, --password PASSWORD
39           The encrypted password, as returned by crypt(3).
40
41
42           Note: This option is not recommended because the password (or
43           encrypted password) will be visible by users listing the processes.
44
45           You should make sure the password respects the system´s password
46           policy.
47

CONFIGURATION

49       The following configuration variables in /etc/login.defs change the
50       behavior of this tool:
51
52       MAX_MEMBERS_PER_GROUP (number)
53           Maximum members per group entry. When the maximum is reached, a new
54           group entry (line) is started in /etc/group (with the same name,
55           same password, and same GID).
56
57           The default value is 0, meaning that there are no limits in the
58           number of members in a group.
59
60           This feature (split group) permits to limit the length of lines in
61           the group file. This is useful to make sure that lines for NIS
62           groups are not larger than 1024 characters.
63
64           If you need to enforce such limit, you can use 25.
65
66           Note: split groups may not be supported by all tools (even in the
67           Shadow toolsuite). You should not use this variable unless you
68           really need it.
69

FILES

71       /etc/group
72           Group account information.
73
74       /etc/gshadow
75           Secure group account information.
76

EXIT VALUES

78       The groupmod command exits with the following values:
79
80       0
81           success
82
83       2
84           invalid command syntax
85
86       3
87           invalid argument to option
88
89       4
90           specified group doesn´t exist
91
92       6
93           specified group doesn´t exist
94
95       9
96           group name already in use
97
98       10
99           can´t update group file
100

SEE ALSO

102       chfn(1), chsh(1), passwd(1), gpasswd(8), groupadd(8), groupdel(8),
103       useradd(8), userdel(8), usermod(8).
104
105
106
107System Management Commands        07/24/2009                       GROUPMOD(8)
Impressum