1 .\" ** You probably do not want to edit this file directly **
2 .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
3 .\" Instead of manually editing it, you probably should edit the DocBook XML
4 .\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
5 .TH "USERMOD" "8" "11/12/2005" "System Management Commands" "System Management Commands"
6 .\" disable hyphenation
8 .\" disable justification (adjust text to left margin only)
11 usermod \- Modify a user account
14 \fBusermod\fR [\fIoptions\fR] \fILOGIN\fR
19 command modifies the system account files to reflect the changes that are specified on the command line.
22 The options which apply to the
26 \fB\-c\fR, \fB\-\-comment\fR \fICOMMENT\fR
27 The new value of the user's password file comment field. It is normally modified using the
31 \fB\-d\fR, \fB\-\-home\fR \fIHOME_DIR\fR
32 The user's new login directory. If the
34 option is given the contents of the current home directory will be moved to the new home directory, which is created if it does not already exist.
36 \fB\-e\fR, \fB\-\-expiredate\fR \fIEXPIRE_DATE\fR
37 The date on which the user account will be disabled. The date is specified in the format
40 \fB\-f\fR, \fB\-\-inactive\fR \fIINACTIVE\fR
41 The number of days after a password expires until the account is permanently disabled. A value of 0 disables the account as soon as the password has expired, and a value of \-1 disables the feature. The default value is \-1.
43 \fB\-g\fR, \fB\-\-gid\fR \fIGROUP\fR
44 The group name or number of the user's new initial login group. The group name must exist. A group number must refer to an already existing group. The default group number is 1.
46 \fB\-G\fR, \fB\-\-groups\fR \fIGROUP1\fR[\fI,GROUP2,...\fR[\fI,GROUPN\fR]]]
47 A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the
49 option. If the user is currently a member of a group which is not listed, the user will be removed from the group. This behaviour can be changed via
51 option, which appends user to the current supplementary group list.
53 \fB\-l\fR, \fB\-\-login\fR \fINEW_LOGIN\fR
54 The name of the user will be changed from
57 \fINEW_LOGIN\fR. Nothing else is changed. In particular, the user's home directory name should probably be changed to reflect the new login name.
59 \fB\-L\fR, \fB\-\-lock\fR
60 Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with
65 \fB\-o\fR, \fB\-\-non\-unique\fR
68 option, this option allows to change the user ID to a non\-unique value.
70 \fB\-p\fR, \fB\-\-password\fR \fIPASSWORD\fR
71 The encrypted password, as returned by
74 \fB\-s\fR, \fB\-\-shell\fR \fISHELL\fR
75 The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
77 \fB\-u\fR, \fB\-\-uid\fR \fIUID\fR
78 The numerical value of the user's ID. This value must be unique, unless the
80 option is used. The value must be non\-negative. Values between 0 and 999 are typically reserved for system accounts. Any files which the user owns and which are located in the directory tree rooted at the user's home directory will have the file user ID changed automatically. Files outside of the user's home directory must be altered manually.
82 \fB\-U\fR, \fB\-\-unlock\fR
83 Unlock a user's password. This removes the '!' in front of the encrypted password. You can't use this option with
90 will not allow you to change the name of a user who is logged in. You must make certain that the named user is not executing any processes when this command is being executed if the user's numerical user ID is being changed. You must change the owner of any crontab files manually. You must change the owner of any at jobs manually. You must make any changes involving NIS on the NIS server.
94 group account information
97 shadow password suite configuration
100 user account information
103 secure user account information