2007-10-07 17:15:23 +05:30
|
|
|
|
.\" 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.
|
|
|
|
|
.\"
|
2007-10-07 17:15:49 +05:30
|
|
|
|
.\" $Id: usermod.8,v 1.4 2004/11/04 03:06:33 kloczek Exp $
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.\"
|
|
|
|
|
.TH USERMOD 8
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
usermod \- <20><> <20><> ʹ <20><> <20><> <20><> <20><>
|
|
|
|
|
.SH <EFBFBD>
|
|
|
|
|
.TP 8
|
|
|
|
|
.B usermod
|
|
|
|
|
.\" .RB [ -A
|
|
|
|
|
.\" .RI { method | \fBDEFAULT\fR "},... ]"
|
|
|
|
|
.RB [ -c
|
|
|
|
|
.IR comment ]
|
|
|
|
|
.RB [ -d
|
|
|
|
|
.IR home_dir " ["
|
|
|
|
|
.BR -m ]]
|
|
|
|
|
.br
|
|
|
|
|
.RB [ -e
|
|
|
|
|
.IR expire_date ]
|
|
|
|
|
.RB [ -f
|
|
|
|
|
.IR inactive_time ]
|
|
|
|
|
.br
|
|
|
|
|
.RB [ -g
|
|
|
|
|
.IR initial_group ]
|
|
|
|
|
.RB [ -G
|
|
|
|
|
.IR group [,...]]
|
|
|
|
|
.br
|
|
|
|
|
.RB [ -l
|
|
|
|
|
.IR login_name ]
|
|
|
|
|
.RB [ -s
|
|
|
|
|
.IR shell ]
|
|
|
|
|
.br
|
|
|
|
|
.RB [ -u
|
|
|
|
|
.IR uid " ["
|
|
|
|
|
.BR -o ]]
|
|
|
|
|
.I login
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
\fBusermod\fR <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ָ <20><> <20><> <20><> <20><> <20><> <20><> ϵ ͳ <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> Ϊ \fBusermod\fR <20><> ѡ <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
|
|
|
|
|
.\" .IP "\fB-A \fImethod\fR|\fBDEFAULT\fR"
|
|
|
|
|
.\" The new 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.
|
|
|
|
|
.IP "\fB-c \fIcomment\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> password <20><> <20><> <20><> ע <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> һ <20><> <20><> ʹ <20><> \fBchfn\fR(1) <20><> <20><> <20><> <20><>
|
|
|
|
|
.IP "\fB-d \fIhome_dir\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> <20><> <20><> Ŀ ¼ <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> \fB-m\fR ѡ <20><> <20><> ʹ <20><> <20><> <20><> Ŀ ¼ <20><> <20><> <20><> <20><> <20><> Ŀ ¼ ȥ
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> Ŀ ¼ <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
.IP "\fB-e \fIexpire_date\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> ͣ ֹ <20><> <20><> <20><> <20><> <20><> <20><> ʽ Ϊ \fIMM/DD/YY\fR.
|
|
|
|
|
.IP "\fB-f \fIinactive_days\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ͣ Ȩ<><C8A8><EFBFBD><EFBFBD> ֵ Ϊ 0 ʱ
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> ͣ Ȩ <20><> <20><> <20><> ֵ Ϊ -1 ʱ <20><> <20>رմ˹<D5B4><CBB9><EFBFBD>
|
|
|
|
|
<EFBFBD><EFBFBD>Ԥ <20><> ֵ Ϊ -1<><31>
|
|
|
|
|
.IP "\fB-g \fIinitial_group\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> <20><> ʼ <20><> <20><> Ⱥ <20><> <20><> Ⱥ <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD>Ⱥ <20><> ID <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> Ⱥ <20><> <20><> Ⱥ <20><> ID Ԥ <20><> ֵ Ϊ 1 <20><>
|
|
|
|
|
.IP "\fB-G \fIgroup,[...]\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> Ϊ һ <20><> groups <20><> <20><> Ա <20><> ÿ
|
|
|
|
|
<EFBFBD><EFBFBD> Ⱥ <20><> ʹ <20><> "," <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> Ԫ <20><> Ⱥ <20><> <20><> ͬ -g ѡ <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> <20><> Ⱥ <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ʹ <20><> <20><> <20><> <20><>
|
|
|
|
|
Ⱥ <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
.IP "\fB-l \fIlogin_name\fR"
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> \fIlogin\fR ʱ <20><> <20><> <20><> Ϊ \fIlogin_name\fR <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ʹ <20><> <20><> Ŀ ¼ <20><> Ӧ <20><> Ҳ <20><> <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><>
|
|
|
|
|
.IP "\fB-s \fIshell\fR"
|
|
|
|
|
ָ <20><> <20><> <20><> <20><> shell <20><> <20><> <20><> <20><> <20><> <20><> <20><> ϵ ͳ <20><> ѡ <20><> ϵ ͳ Ԥ <20><> shell <20><>
|
|
|
|
|
.IP "\fB-u \fIuid\fR"
|
|
|
|
|
ʹ <20><> <20><> ID ֵ <20><><EFBFBD><EFBFBD> <20><> Ϊ Ψ һ <20><> ID ֵ <20><> <20><> <20><> <20><> \fI-o\fR ѡ <20><> <20><> <20><>
|
2007-10-07 17:15:49 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> Ϊ <20><> ֵ<><D6B5>Ԥ <20><> Ϊ <20><> С <20><> <20><> С <20><> 999 <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> 0~ 999 <20><> ͳ <20><> <20><> <20><> <20><> <20><> ϵ ͳ <20><> <20><> ʹ <20><> <20><>
|
2007-10-07 17:15:23 +05:30
|
|
|
|
ʹ <20><> <20><> Ŀ ¼ <20><> <20><> <20><> <20><> <20><> <20><> <20><> Ŀ ¼ <20><> user ID <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> Ŀ ¼ <20><> <20><> <20><> <20><> <20><> Ҫ <20><> <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
\fBusermod\fR <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><><EFBFBD><EFBFBD> <20><> <20><> ʹ <20><> <20><> <20><> <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> usermod <20><> <20><> <20><> <20><> user ID, <20><> <20><> ȷ <20><> <20><> <20><> user û <20><> <20><> <20><> <20><> ִ
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> ʹ <20><> <20><> <20><> crontab <20><> <20><>
|
|
|
|
|
Ҳ <20><> <20><> <20><> <20><> <20><> ʹ <20><> <20><> <20><> at <20><> <20><> <20><> <20><>
|
|
|
|
|
<EFBFBD><EFBFBD> <20><> NIS server <20><> <20><> server <20><> <20><> <20><> <20><> <20><> <20><> NIS <20><> <20><> <20><>
|
|
|
|
|
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
\fI/etc/passwd\fR \- ʹ <20><> <20><> <20><> <20><> <20><> Ѷ
|
|
|
|
|
.br
|
|
|
|
|
\fI/etc/shadow\fR \- ʹ <20><> <20><> <20><> <20><> <20><> Ѷ <20><> <20><>
|
|
|
|
|
.br
|
|
|
|
|
\fI/etc/group\fR \- Ⱥ <20><> <20><> Ѷ
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
.BR chfn (1),
|
|
|
|
|
.BR chsh (1),
|
|
|
|
|
.BR groupadd (8),
|
|
|
|
|
.BR groupdel (8),
|
|
|
|
|
.BR groupmod (8),
|
|
|
|
|
.BR passwd (1),
|
|
|
|
|
.BR useradd (8),
|
|
|
|
|
.BR userdel (8)
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
Julianne Frances Haugh (jfh@tab.com)
|