
usermod | 495
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-D [options]
Set or display defaults. If options are specified, set them. If no
options are specified, display current defaults. The options
are:
-b dir
Home directory prefix to be used in creating home direc-
tories. If the -d option is not used when creating an
account, the user name will be appended to dir.
-e date
Expire date. Requires the use of shadow passwords.
-f days
Number of days after a password expires to disable an
account. Requires the use of shadow passwords.
-g group
Initial group name or ID number.
-s shell
Default login shell.
userdel
userdel [option] user
System administration command. Delete all entries for user in
system account files.
Option
-r Remove the home directory of user and any files contained in
it.
usermod
usermod [options] user
System administration command. Modify user account information.
Options
-c comment
Comment field.
-d dir
Home directory.
-e date
Account expiration date. date is in the format MM/DD/YYYY;
two-digit year fields are also accepted. The value is stored as
the number of days since January 1, 1970. This option
requires the use of shadow passwords.
-f days
Permanently disable account this many days after the pass-
word has expired. A value of -1 disables this feature. This
option requires the use of shadow passwords.
-g group
Initial ...