update NEWS
[manpages-zh.git] / raw / man8 / groupadd.8
blob720797396c66148c7c4d3856afd6b435557df090
1 .\" Copyright 1991, Julianne Frances Haugh
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
15 .\"
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
26 .\" SUCH DAMAGE.
27 .TH GROUPADD 8
28 .SH NAME
29 groupadd \- Create a new group
30 .SH SYNOPSIS
31 \fBgroupadd\fR [\fB-g\fI gid \fR[\fB-o\fR]] [\fB-r\fR] [\fB-f\fR] \fIgroup\fR
32 .SH DESCRIPTION
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
38 .IP "\fB-g \fIgid\fR"
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.
45 .IP \fB-r\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
49 command line.
50 .br
51 This is an option added by Red Hat.
52 .IP \fB-f\fR
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
56 again).
57 .br
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
62 specified).
63 .br
64 This is an option added by Red Hat.
65 .SH FILES
66 /etc/group \- group account information
67 .br
68 /etc/gshadow \- secure group account information
69 .SH SEE ALSO
70 .BR chfn (1),
71 .BR chsh (1),
72 .BR passwd (1),
73 .BR groupdel (8),
74 .BR groupmod (8),
75 .BR useradd (8),
76 .BR userdel (8),
77 .BR usermod (8)
78 .SH AUTHOR
79 Julianne Frances Haugh (jockgrrl@ix.netcom.com)