1 .\" Copyright 1991, Julianne Frances Haugh
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 groupadd \- Create a new group
31 \fBgroupadd\fR [\fB-g\fI gid \fR[\fB-o\fR]] [\fB-r\fR] [\fB-f\fR] \fIgroup\fR
33 The \fBgroupadd\fR command
34 creates a new group account using the values specified on the
35 command line and the default values from the system.
36 The new group will be entered into the system files as needed.
37 The options which apply to the \fBgroupadd\fR command are
39 The numerical value of the group's ID.
40 This value must be unique, unless the \fB-o\fR option is used.
41 The value must be non-negative.
42 The default is to use the smallest ID value greater than 500 and
43 greater than every other group.
44 Values between 0 and 499 are typically reserved for \fIsystem accounts\fR.
46 This flag instructs \fBgroupadd\fR to add a \fIsystem
47 account\fR. The first available \fIgid\fR lower than 499 will be
48 automatically selected unless the \fB-g\fR option is also given on the
51 This is an option added by Red Hat.
53 This is the \fIforce\fR flag. This will cause \fBgroupadd\fR to exit with an
54 error when the group about to be added already exists on the
55 system. If that is the case, the group won't be altered (or added
58 This option also modifies the way \fB-g\fR option works. When you
59 request a \fIgid\fR that it is not unique and you don't specify the \fB-o\fR
60 option too, the group creation will fall back to the standard behavior
61 (adding a group as if neither \fB-g\fR or \fB-o\fR options were
64 This is an option added by Red Hat.
66 /etc/group \- group account information
68 /etc/gshadow \- secure group account information
79 Julianne Frances Haugh (jockgrrl@ix.netcom.com)