1
.\" A man page for lusermod
2
.\" Copyright (C) 2005 Red Hat, Inc.
4
.\" This is free software; you can redistribute it and/or modify it under
5
.\" the terms of the GNU Library General Public License as published by
6
.\" the Free Software Foundation; either version 2 of the License, or
7
.\" (at your option) any later version.
9
.\" This program is distributed in the hope that it will be useful, but
10
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
11
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
.\" General Public License for more details.
14
.\" You should have received a copy of the GNU Library General Public
15
.\" License along with this program; if not, write to the Free Software
16
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
.\" Author: Miloslav Trmac <mitr@redhat.com>
19
.TH lusermod 1 "Jan 15 2005" libuser
22
lusermod \- Modify an user
25
lusermod [\fIOPTION\fR]... \fIuser\fR
28
Modifies the user with name \fIuser\fR.
32
\fB\-c\fR, \fB\-\-gecos\fR=\fIgecos\fR
33
Set \fIuser\fR's \f[SM]GECOS\fR field to \fIgecos\fR.
34
The \f[SM]GECOS\fR field is traditionally used to store user's real name
35
and other information.
38
\fB\-d\fR, \fB\-\-directory\fR=\fIdirectory\fR
39
Set \fIuser\fR's home directory to \fIdirectory\fR.
42
\fB\-g\fR, \fB\-\-gid\fR=\fIgid\fR
43
Change \fIuser\fR's primary group ID to \fIgid\fR.
46
\fB\-i\fR, \fB\-\-interactive\fR
47
Ask all questions when connecting to the user database,
48
even if default answers are set up in
53
\fB\-L\fR, \fB\-\-lock\fR
54
Lock \fIuser\fR's account.
55
This prevents logging in using \fIuser\fR's password.
58
\fB\-l\fR, \fB\-\-login\fR=\fIname\fR
59
Rename \fIuser\fR to \fIname\fR.
62
\fB\-m\fR, \fB\-\-movedirectory\fR
63
After changing \fIuser\fR's home directory (using the \fB\-d\fR option),
64
move the old home directory to the new location.
67
\fB\-P\fR, \fB\-\-plainpassword\fR=\fIpassword\fR
68
Set \fIuser\fR's password to \fIpassword\fR.
69
Note that the password can be viewed while running
75
\fB\-p\fR, \fB\-\-password\fR=\fIencrypted\fR
76
Set \fIuser\fR's password to the password represented by the hash
78
Note that the hash can be viewed while running
84
\fB\-s\fR, \fB\-\-shell\fR=\fIshell\fR
85
Set \fIuser\fR's login shell to \fIshell\fR.
88
\fB\-U\fR, \fB\-\-unlock\fR
89
Unlock \fIuser\fR's account.
92
\fB\-u\fR, \fB\-\-uid\fR=\fIuid\fR
93
Change \fIuser\fR's user ID to \fIuid\fR.
96
The exit status is 0 on success, nonzero on error.