2007-10-07 17:16:07 +05:30
|
|
|
|
.\" $Id: usermod.8,v 1.6 2005/04/05 19:08:57 kloczek Exp $
|
|
|
|
|
.\" Copyright 1991 \- 1994, Julianne Frances Haugh
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.\" 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.
|
|
|
|
|
.TH USERMOD 8
|
|
|
|
|
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
usermod \- <20><> <20><> ʹ <20><> <20><> <20><> <20><>
|
|
|
|
|
.SH <EFBFBD>
|
|
|
|
|
.TP 8
|
|
|
|
|
.B usermod
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.\" .RB [ \-A
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.\" .RI { method | \fBDEFAULT\fR "},... ]"
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-c
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR comment ]
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-d
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR home_dir " ["
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.BR \-m ]]
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-e
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR expire_date ]
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-f
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR inactive_time ]
|
|
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-g
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR initial_group ]
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-G
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR group [,...]]
|
|
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-l
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR login_name ]
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-s
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR shell ]
|
|
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.RB [ \-u
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.IR uid " ["
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.BR \-o ]]
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.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><>
|
|
|
|
|
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.\" .IP "\fB\-A \fImethod\fR|\fBDEFAULT\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
.\" 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.
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-c\fR \fIcomment\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<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><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-d\fR \fIhome_dir\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> <20><> <20><> Ŀ ¼ <20><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> \fB\-m\fR ѡ <20><> <20><> ʹ <20><> <20><> <20><> Ŀ ¼ <20><> <20><> <20><> <20><> <20><> Ŀ ¼ ȥ
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> Ŀ ¼ <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-e\fR \fIexpire_date\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> ʹ <20><> <20><> <20><> <20><> ͣ ֹ <20><> <20><> <20><> <20><> <20><> <20><> ʽ Ϊ \fIMM/DD/YY\fR.
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-f\fR \fIinactive_days\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> <20><> <20><> ͣ Ȩ<><C8A8><EFBFBD><EFBFBD> ֵ Ϊ 0 ʱ
|
2007-10-07 17:16:07 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> ͣ Ȩ <20><> <20><> <20><> ֵ Ϊ \-1 ʱ <20><> <20>رմ˹<D5B4><CBB9><EFBFBD>
|
|
|
|
|
<EFBFBD><EFBFBD>Ԥ <20><> ֵ Ϊ \-1<EFBFBD><EFBFBD>
|
|
|
|
|
.IP "\fB\-g\fR \fIinitial_group\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<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><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-G\fR \fIgroup,[...]\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<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><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
<EFBFBD><EFBFBD> <20><> Ԫ <20><> Ⱥ <20><> <20><> ͬ \-g ѡ <20><> <20><> <20><> <20><> <20><>
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<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><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-l\fR \fIlogin_name\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
<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><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-s\fR \fIshell\fR"
|
2007-10-07 17:15:23 +05:30
|
|
|
|
ָ <20><> <20><> <20><> <20><> shell <20><> <20><> <20><> <20><> <20><> <20><> <20><> ϵ ͳ <20><> ѡ <20><> ϵ ͳ Ԥ <20><> shell <20><>
|
2007-10-07 17:16:07 +05:30
|
|
|
|
.IP "\fB\-u\fR \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)
|