199 lines
6.9 KiB
Groff
199 lines
6.9 KiB
Groff
|
.\" Copyright 1991 - 1994, 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.
|
|||
|
.\"
|
|||
|
.\" $Id: useradd.8,v 1.2 2003/04/26 13:24:16 kloczek Exp $
|
|||
|
.\"
|
|||
|
.TH USERADD 8
|
|||
|
.SH <EFBFBD>W <EFBFBD><EFBFBD>
|
|||
|
useradd \- <20>b <20><> <20><> <20><> <20><> <20><> <20>s <20>s <20><> <20><> <20><> <20><> <20><> <20>T
|
|||
|
.SH <EFBFBD>y <EFBFBD>k
|
|||
|
.TP 8
|
|||
|
.B useradd
|
|||
|
.\" .RB [ -A
|
|||
|
.\" .RI { method | \fBDEFAULT\fR "},... ]"
|
|||
|
.RB [ -c
|
|||
|
.IR comment ]
|
|||
|
.RB [ -d
|
|||
|
.IR home_dir ]
|
|||
|
.br
|
|||
|
.RB [ -e
|
|||
|
.IR expire_date ]
|
|||
|
.RB [ -f
|
|||
|
.IR inactive_time ]
|
|||
|
.br
|
|||
|
.RB [ -g
|
|||
|
.IR initial_group ]
|
|||
|
.RB [ -G
|
|||
|
.IR group [,...]]
|
|||
|
.br
|
|||
|
.RB [ -m " [" -k
|
|||
|
.IR skeleton_dir ] " |" " " -M ]
|
|||
|
.RB [ -s
|
|||
|
.IR shell ]
|
|||
|
.br
|
|||
|
.RB [ -u
|
|||
|
.IR uid " ["
|
|||
|
.BR -o ]]
|
|||
|
.RB [ -n ]
|
|||
|
.RB [ -r ]
|
|||
|
.I login
|
|||
|
.TP 8
|
|||
|
.B useradd
|
|||
|
\fB-D\fR
|
|||
|
[\fB-g\fI default_group\fR]
|
|||
|
[\fB-b\fI default_home\fR]
|
|||
|
.br
|
|||
|
[\fB-f\fI default_inactive\fR]
|
|||
|
[\fB-e\fI default_expire_date\fR]
|
|||
|
.br
|
|||
|
[\fB-s\fI default_shell\fR]
|
|||
|
.SH <EFBFBD>y <EFBFBD>z
|
|||
|
.SS <EFBFBD>s <EFBFBD>b <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>[ \fB-D\fR <20><> <20><> , \fBuseradd\fR <20><> <20>O <20><> <20><> <20>R <20>O <20>C <20><> <20><> <20>w
|
|||
|
<EFBFBD>s <20>b <20><> <20><> <20>] <20>w <20><> and <20><> <20><> <20>t <20><> <20>W <20><> <20>w <20>] <20><> .
|
|||
|
<EFBFBD>s <20><> <20><> <20><> <20>b <20><> <20>N <20><> <20><> <20>@ <20><> <20>t <20><> <20><> <20><> <20>A <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20>A
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>_ <20>l <20><> <20><> <20><>
|
|||
|
<EFBFBD>A <20>o <20><> <20><> <20>i <20>H <20>Q <20><> <20>R <20>O<EFBFBD>C <20><> <20><> <20><> <20>w <20>C <20><> <20><> <20><> <20><> Red Hat Linux <20><> <20><>
|
|||
|
<EFBFBD>A <20>i <20><> <20>C <20><> <20>s <20>[ <20>J <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20>O <20><> group , <20><> <20><> <20>K <20>[ \fB-n\fR
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>C
|
|||
|
\fBuseradd\fR <20>i <20><> <20><> <20><> <20><> <20><> <20><>
|
|||
|
.\" .IP "\fB-A {\fImethod\fR|\fBDEFAULT\fR},..."
|
|||
|
.\" The value of the user's authentication method.
|
|||
|
.\" The authentication method is the name of a program which is responsible
|
|||
|
.\" for validating the user's identity.
|
|||
|
.\" The string \fBDEFAULT\fR may be used to change the user's authentication
|
|||
|
.\" method to the standard system password method.
|
|||
|
.\" This is a comma-separated list of program names.
|
|||
|
.\" It may include \fBDEFAULT\fR exactly once.
|
|||
|
.IP "\fB-c \fIcomment\fR"
|
|||
|
<EFBFBD>s <20>b <20><> password <20><> <20><> <20><> <20><> <20><> <20>C
|
|||
|
.IP "\fB-d \fIhome_dir\fR"
|
|||
|
<EFBFBD>s <20>b <20><> <20>C <20><> <20>n <20>J <20><> <20><> <20><> <20><> <20><> \fIhome_dir\fR <20>C
|
|||
|
<EFBFBD>w <20>] <20><> <20><> \fIdefault_home\fR <20><> \fIlogin\fR <20>W <20><> <20>A <20><> <20><> <20><> <20>n <20>J <20><> <20><> <20><>
|
|||
|
<EFBFBD>W <20><> <20>C
|
|||
|
.IP "\fB-e \fIexpire_date\fR"
|
|||
|
<EFBFBD>b <20><> <20><> <20><> <20><> <20><> <20>C <20><> <20><> <20><> <20><> <20>w <20><> <20><> <20><> \fIMM/DD/YY\fR <20>C
|
|||
|
.IP "\fB-f \fIinactive_days\fR"
|
|||
|
<EFBFBD>b <20><> <20>L <20><> <20>X <20><> <20><> <20><> <20>[ <20><> <20>v <20>C
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> 0 <20><> <20>b <20><> <20>h <20><> <20><> <20>Q <20><> <20>v <20>C
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> -1 <20><> <20>h <20><> <20><> <20><> <20>\\ <20><> <20>A <20>w <20>] <20><> <20><> -1
|
|||
|
.IP "\fB-g \fIinitial_group\fR"
|
|||
|
group <20>W <20><> <20><> <20>H <20><> <20>r <20><> <20><> <20><> <20><> <20><> <20><> <20>n <20>J <20>_ <20>l <20>s <20><> (group) <20>C
|
|||
|
<EFBFBD>s <20><> <20>W <20><> <20><> <20>{ <20><> <20>s <20>b <20><> <20>W <20><> <20>C
|
|||
|
<EFBFBD>s <20><> <20><> <20>r <20>] <20><> <20><> <20>{ <20><> <20>s <20>b <20><> <20>s <20><> <20>C
|
|||
|
<EFBFBD>w <20>] <20><> <20>s <20><> <20><> <20>r <20><> 1 <20>C
|
|||
|
.IP "\fB-G \fIgroup,[...]\fR"
|
|||
|
<EFBFBD>w <20>q <20><> <20><> <20><> <20><> <20><> <20><> <20>@ <20><> groups <20><> <20><> <20><> <20>C
|
|||
|
<EFBFBD>C <20><> <20>s <20><> <20><> <20><> "," <20><> <20><> <20>} <20><> <20>A <20><> <20>i <20>H <20><> <20><> <20><> <20><> <20>r <20><> <20>C
|
|||
|
<20>s <20><> <20>W <20>P \fB-g\fR <20><> <20><> <20><> <20><> <20><> <20>C
|
|||
|
<EFBFBD>w <20>q <20><> <20><> <20>ϥ<EFBFBD> <20><> <20><> <20>_ <20>l <20>s <20><> <20>C
|
|||
|
.IP \fB-m\fR
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20>p <20><> <20>s <20>b <20>h <20><> <20><> <20><> <20><> <20>C
|
|||
|
<EFBFBD>p <20><> <20><> \fB-k\fR <20><> <20><> \fIskeleton_dir\fR <20><> <20><> <20><> <20><> <20>N <20><> <20>s <20><> <20><> <20><> <20><> <20><>
|
|||
|
<EFBFBD><EFBFBD> <20>U <20>C
|
|||
|
<EFBFBD>M <20><> <20>b \fI/etc/skel\fR <20><> <20><> <20>U <20><> <20><> <20><> <20>] <20>| <20><> <20>s <20>L <20>h <20><> <20>N <20>C
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>b \fIskeleton_dir\fR or \fI/etc/skel\fR <20><> <20><> <20><> <20>] <20><> <20>P <20>| <20>b <20><> <20><> <20><>
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>U <20>@ <20>@ <20><> <20><> <20>C
|
|||
|
The \fB-k\fR <20>P \fB-m\fR
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20>H <20><> <20><> <20><> <20>s <20><> <20><> <20><> <20><> <20><> <20>w <20>] <20><> <20>C
|
|||
|
.IP \fB-M\fR
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20>A <20>Y <20><> \fI/etc/login.defs\fR <20>t <20><> <20><> <20>] <20>w <20>n <20><>
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20>C
|
|||
|
.IP \fB-n\fR
|
|||
|
<EFBFBD>w <20>] <20><> <20><> <20><> <20><> <20>s <20><> <20>P <20><> <20><> <20><> <20>W <20><> <20>| <20><> <20>P <20>C <20><> <20><> <20><> <20>N <20><> <20><> <20><> <20>w
|
|||
|
<EFBFBD>] <20><> <20>C
|
|||
|
.IP \fB-r\fR
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20>O <20><> <20><> <20><> <20><> <20>t <20><> <20>b <20><> <20>C <20>t <20><> <20>b <20><> <20><> UID <20>| <20><> <20>w <20>q <20>b <20>t
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>W \fI/etc/login.defs\fR.
|
|||
|
<EFBFBD><EFBFBD> UID_MIN <20><> <20><> <20>p <20>C <20>` <20>N \fBuseradd\fR <20><> <20><> <20>k <20><> <20><> <20><> <20><> <20>b <20><> <20><> <20>|
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><>
|
|||
|
<EFBFBD>A <20>] <20><> <20>| <20>b <20>G <20><> <20><> <20>b \fI/etc/login.defs\fR. <20><> <20>w <20>q <20><> <20>C
|
|||
|
<EFBFBD>p <20>G <20>A <20>Q <20>n <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20>B <20>~ <20><> <20>w \fB-m\fR <20><> <20><> <20><> <20><> <20><> <20>t
|
|||
|
<EFBFBD><EFBFBD> <20>b <20><> <20>C
|
|||
|
<EFBFBD>o <20>O RED HAT <20>B <20>~ <20>W <20>] <20><> <20><> <20><> <20>C
|
|||
|
.IP "\fB-s \fIshell\fR"
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20>n <20>J <20><> <20><> <20><> <20><> shell <20>W <20><> <20>C
|
|||
|
<EFBFBD>w <20>] <20><> <20><> <20><> <20>g <20>A <20>o <20><> <20>t <20><> <20>| <20><> <20>A <20><> <20>w <20>w <20>] <20><> <20>n <20>J shell <20>C
|
|||
|
.IP "\fB-u \fIuid\fR"
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> ID <20><> <20>C <20><> <20><> <20><> <20><> <20>@ <20><> ID <20><> <20>A <20><> <20>D <20><> \fI-o\fR <20><> <20><> <20>C
|
|||
|
<EFBFBD><EFBFBD> <20>r <20><> <20>i <20><> <20>t <20>ȡC<C8A1>w <20>] <20><> <20><> <20>p <20><> <20>o <20>p <20><> 99 <20><> <20>v <20><> <20>W <20>[ <20>C
|
|||
|
0~99 <20><> <20><> <20>W <20>O <20>O <20>d <20><> <20>t <20><> <20>b <20><> <20><> <20><> <20>C
|
|||
|
|
|||
|
.SS <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>w <EFBFBD>] <EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD> \fB-D\fR <20><> <20><> <20>X <20>{ <20><> <20>A \fBuseradd\fR <20>q <20>X <20>{ <20>b <20><> <20>w <20>] <20><> <20>A <20><> <20>O <20><>
|
|||
|
<EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>R <20>O <20>C <20><> <20><> <20><> <20><> <20>s <20>w <20>] <20><> <20>C
|
|||
|
<EFBFBD>i <20><> <20><> <20><> <20><> <20>G
|
|||
|
.IP "\fB-b \fIdefault_home\fR"
|
|||
|
<EFBFBD>w <20>q <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20>e <20>@ <20><> <20><> <20><> <20>C
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20>W <20><> <20>| <20><> <20>[ <20>b \fIdefault_home\fR <20><> <20><>
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20>s <20><> <20><> <20><> <20><> <20><> <20><> <20>C
|
|||
|
<EFBFBD><EFBFBD> <20>M <20><> <20><> \fB-d\fI <20><> <20>h <20><> <20><> <20><> <20>L <20><> <20>C
|
|||
|
.IP "\fB-e \fIdefault_expire_date\fR"
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20>b <20><> <20><> <20><> <20><> <20><> <20>C
|
|||
|
.IP "\fB-f \fIdefault_inactive\fR"
|
|||
|
<EFBFBD>b <20><> <20>L <20><> <20>X <20><> <20><> <20><> <20>v <20>C
|
|||
|
.IP "\fB-g \fIdefault_group\fR"
|
|||
|
<EFBFBD>s <20>b <20><> <20>_ <20>l <20>s <20><> <20>W <20><> ID <20>C
|
|||
|
<EFBFBD>s <20><> <20>W <20><> <20><> <20>{ <20><> <20>s <20>b <20><> <20>W <20><> <20>C
|
|||
|
<EFBFBD>s <20><> I D <20>] <20><> <20><> <20>{ <20><> <20>s <20>b <20><> <20>s <20><> <20>C
|
|||
|
.IP "\fB-s \fIdefault_shell\fR"
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20>n <20>J <20><> <20><> <20><> <20><> shell <20>W <20><> <20>C
|
|||
|
<EFBFBD><EFBFBD> <20><> <20>s <20>[ <20>J <20><> <20>b <20><> <20><> <20>N <20><> <20><> <20><> shell.
|
|||
|
.PP
|
|||
|
<EFBFBD>p <20><> <20><> <20>w <20><> <20><> <20><> <20><> <20>A \fBuseradd\fR <20><> <20><> <20><> <20>e <20>w <20>] <20><> <20><> <20>C
|
|||
|
.SH <EFBFBD>` <EFBFBD>O
|
|||
|
<EFBFBD>t <20><> <20><> <20>z <20><> <20><> <20>q <20><> <20>b \fI/etc/skel\fR <20><> <20><> <20>U <20><> <20>m <20><> <20><> <20><> <20>w <20>q <20><> <20>C
|
|||
|
.br
|
|||
|
<EFBFBD><EFBFBD> <20><> <20><> <20>yuseradd<64>z <20><> Red Hat <20><> <20><> <20>C
|
|||
|
.SH ĵ <EFBFBD>i
|
|||
|
<EFBFBD><EFBFBD> <20>i <20>s <20>W <20><> <20><> <20><> <20><> NIS <20>s <20><> <20><> <20>C
|
|||
|
<EFBFBD>A <20><> <20><> <20>b NIS <20><> <20>A <20><> <20>W <20><> <20><> <20>C
|
|||
|
.SH <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|||
|
\fI/etc/passwd\fR \- <20><> <20><> <20><> <20>b <20><> <20><> <20>T
|
|||
|
.br
|
|||
|
\fI/etc/shadow\fR \- <20><> <20><> <20><> <20>b <20><> <20><> <20>T <20>[ <20>K
|
|||
|
.br
|
|||
|
\fI/etc/group\fR \- <20>s <20><> <20><> <20>T
|
|||
|
.br
|
|||
|
\fI/etc/default/useradd\fR \- <20>w <20>q <20><> <20>T
|
|||
|
.br
|
|||
|
\fI/etc/login.defs\fR \- <20>t <20><> <20>s <20>q <20>] <20>w
|
|||
|
.br
|
|||
|
\fI/etc/skel/\fR \- <20><> <20>t <20>w <20>q <20><> <20><> <20><> <20><>
|
|||
|
.SH SEE ALSO
|
|||
|
.BR chfn (1),
|
|||
|
.BR chsh (1),
|
|||
|
.BR groupadd (8),
|
|||
|
.BR groupdel (8),
|
|||
|
.BR groupmod (8),
|
|||
|
.BR passwd (1),
|
|||
|
.BR userdel (8),
|
|||
|
.BR usermod (8)
|
|||
|
.SH AUTHOR
|
|||
|
Julianne Frances Haugh (jfh@tab.com)
|