2007-10-07 17:15:23 +05:30
|
|
|
|
.\" Copyright 1991, Julianne Frances Haugh
|
|
|
|
|
.\" All rights reserved.
|
|
|
|
|
.\"
|
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
|
.\" are met:
|
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
|
.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
|
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
|
.\"
|
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
|
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
|
.\"
|
2007-10-07 17:15:49 +05:30
|
|
|
|
.\" $Id: groupadd.8,v 1.4 2004/11/04 03:06:33 kloczek Exp $
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.\"
|
|
|
|
|
.TH GROUPADD 8
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
groupadd \- <20><> <20><> <20><> Ⱥ <20><>
|
|
|
|
|
.SH <EFBFBD>
|
|
|
|
|
.B groupadd
|
|
|
|
|
[\fB-g\fI gid \fR[\fB-o\fR]] [\fB-r\fR] [\fB-f\fR] \fIgroup\fR
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
\fBgroupadd\fR
|
|
|
|
|
<EFBFBD><EFBFBD> ָ <20><> Ⱥ <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> Ⱥ <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> Ҫ ʱ <20><> <20><> ϵ ͳ <20><> ȡ <20><> <20><> Ⱥ <20><> ֵ <20><>
|
|
|
|
|
\fBgroupadd\fR <20><> <20><> <20><> ѡ <20><> <20><> <20><> <20><>
|
|
|
|
|
.IP "\fB-g \fIgid\fR"
|
|
|
|
|
group's ID ֵ <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> \fB-o\fR <20><> <20><> <20><> Ȼ <20><> ֵ <20><> <20><> <20><> Ψ һ <20><> <20><> <20><> <20><> ͬ <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> ֵ <20><> <20><> Ϊ <20><> <20><>
|
2007-10-07 17:15:49 +05:30
|
|
|
|
Ԥ <20><> Ϊ <20><> С <20><> <20><> С <20><> 500 <20><> <20><> <20><> <20><> <20><> <20><> 0~999 <20><> ͳ <20><>
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> \fIϵͳ<EFBFBD>ʺ<EFBFBD>\fR ʹ <20><> <20><>
|
|
|
|
|
.IP \fB-r\fR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> <20><> \fIϵͳ<EFBFBD>ʺ<EFBFBD>\fR <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> UID <20><> <20><> <20><> <20><> <20><> ϵ ͳ <20><> <20><> /etc/login.defs.
|
|
|
|
|
<EFBFBD><EFBFBD> UID_MIN <20><> <20><> С <20><> ע <20><> useradd <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ʹ <20><> <20><> Ŀ ¼ <20><> Ҳ <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> ¼ <20><> /etc/login.defs. <20><> <20><> <20><> ֵ <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> Ҫ <20><> ʹ <20><> <20><> Ŀ ¼ <20><> <20><> <20><> ָ <20><> -m <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> ϵ ͳ <20><> <20><> <20><> <20><> <20><> RED HAT <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ѡ <20><> <20><>
|
2007-10-07 17:15:49 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> ѡ <20><> һ <20><> С <20><> 999 <20><> \fIgif\fR
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> Ҫ <20><> <20><> <20><> \fB-g\fR <20><> <20><> <20><>
|
|
|
|
|
.br
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> RED HAT <20><> <20><> <20><> <20><> <20><> ѡ <20><> <20><>
|
|
|
|
|
|
|
|
|
|
.IP \fB-f\fR
|
|
|
|
|
This is \fIforce\fR flag.
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> һ <20><> <20><> <20><> <20><> <20><> <20><> Ⱥ <20><> <20><> <20><> <20><> ϵ ͳ <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> Ѷ Ϣ Ȼ <20><> <20><> <20><> \fBgroupadd\fR <20><>
|
|
|
|
|
<20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> Ⱥ <20><>
|
|
|
|
|
( <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ϵ ͳ <20><> <20><> <20><> <20><> <20><> һ <20><> )
|
|
|
|
|
.br
|
|
|
|
|
Ҳ <20><> ͬ ʱ <20><> <20><> \fB-g\fR ѡ <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> һ <20><> \fIgid\fR <20><> <20><> ʱ \fIgid\fR
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> Ψ һ ֵ <20><> <20><> <20><> <20><> \fB-o\fR <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> Ⱥ <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
(adding a group as neither \fB-g\fR or \fB-o\fR options were
|
|
|
|
|
specified).
|
|
|
|
|
|
|
|
|
|
.br
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> RED HAT <20><> <20><> <20><> <20><> <20><> ѡ <20><> <20><>
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
\fI/etc/group\fR \- Ⱥ <20><> <20><> Ѷ
|
|
|
|
|
.br
|
|
|
|
|
\fI/etc/gshadow\fR \- Ⱥ <20><> <20><> Ѷ <20><> <20><>
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
.BR chfn (1),
|
|
|
|
|
.BR chsh (1),
|
|
|
|
|
.BR useradd (8),
|
|
|
|
|
.BR userdel (8),
|
|
|
|
|
.BR usermod (8),
|
|
|
|
|
.BR passwd (1),
|
|
|
|
|
.BR groupdel (8),
|
|
|
|
|
.BR groupmod (8)
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
Julianne Frances Haugh (jfh@tab.com)
|