3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: System Management Commands
7 .\" Source: System Management Commands
10 .TH "GROUPMOD" "8" "02/16/2011" "System Management Commands" "System Management Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 groupmod \- modify a group definition on the system
33 .HP \w'\fBgroupmod\fR\ 'u
34 \fBgroupmod\fR [\fIoptions\fR] \fIGROUP\fR
39 command modifies the definition of the specified
41 by modifying the appropriate entry in the group database\&.
44 The options which apply to the
48 \fB\-g\fR, \fB\-\-gid\fR \fIGID\fR
50 The group ID of the given
57 must be a non\-negative decimal integer\&. This value must be unique, unless the
59 option is used\&. Values between 0 and 999 are typically reserved for system groups\&.
61 Any files that have the old group ID and must continue to belong to
62 \fIGROUP\fR, must have their group ID changed manually\&.
65 \fB\-h\fR, \fB\-\-help\fR
67 Display help message and exit\&.
70 \fB\-n\fR, \fB\-\-new\-name\fR \fINEW_GROUP\fR
72 The name of the group will be changed from
79 \fB\-o\fR, \fB\-\-non\-unique\fR
83 option, allow to change the group
85 to a non\-unique value\&.
88 \fB\-p\fR, \fB\-\-password\fR \fIPASSWORD\fR
90 The encrypted password, as returned by
95 This option is not recommended because the password (or encrypted password) will be visible by users listing the processes\&.
97 You should make sure the password respects the system\*(Aqs password policy\&.
101 The following configuration variables in
103 change the behavior of this tool:
105 \fBMAX_MEMBERS_PER_GROUP\fR (number)
107 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
109 (with the same name, same password, and same GID)\&.
111 The default value is 0, meaning that there are no limits in the number of members in a group\&.
113 This feature (split group) permits to limit the length of lines in the group file\&. This is useful to make sure that lines for NIS groups are not larger than 1024 characters\&.
115 If you need to enforce such limit, you can use 25\&.
117 Note: split groups may not be supported by all tools (even in the Shadow toolsuite)\&. You should not use this variable unless you really need it\&.
123 Group account information\&.
128 Secure group account information\&.
134 command exits with the following values:
143 invalid command syntax
148 invalid argument to option
153 specified group doesn\*(Aqt exist
158 specified group doesn\*(Aqt exist
163 group name already in use
168 can\*(Aqt update group file