Name
vxusermod -- modify a user account
Syntax
vxusermod [-L] [--after
command] [--before command] [--vxdb
database] [-A group[,...]] [-G
group[,...]] [-R group[,...]] [-c
comment] [-d directory [-m]] [-e
date] [-f inactive_days] [-g primary_group]
[-l login_name] [-s shell] [-u uid
[-o]] login
Description
usermod updates the user's account with the information given on the command line. Not specified options will not change the corresponding account field.
If -I
is passed, the user is interactively asked
for what parameters shall be changed, by presenting a default value, which he
may either accept (by leaving the answer empty) or specifying a new value. The
-A
, -B
, -I
, and -M
options
are unique to Vitalnix. The configuration file for usermod
is
/etc/vitalnix/usermod.conf
.
Options
--after command |
Runs the specified command after the user was
successfully added. If --after is given, but with
a zero-length command string, the default command in the
configuration file is not run. |
--before
command |
Runs the specified command before the user is
added. It is run always, even if adding fails. If
--before is given, but with a zero-length command
string, the default command in the configuration file is not
run. |
--vxdb database |
Uses the specified database rather than the default one listed in the VXDB configuration file. |
-A
group[,...] |
Add the user into the listed secondary groups. |
-G
group[,...] |
Set the user's list of secondary groups. |
-L |
Lock the user's account. |
-R
group[,...] |
Remove the user from the listed secondary groups. |
-U |
Unlock the user's account. |
-c comment |
Changes the comment (GECOS) field |
-d directory |
Changes the home directory. Also see the
-m option. |
-e date |
The new date on which the user account will expire. (Valid format is YYYY-MM-DD.) |
-f days |
The number of days which need to pass after a
password expiration (which is not -e !) until the
account is locked down. |
-g group |
Changes the users initial (primary) group. |
-l login |
Changes the login name for the user, which must be unique. |
-m |
When -d is given, specifying
-m will move data from the old home directory into
the new one, necessarily creating the new directory if it does
not exist yet. |
-o |
If a user with the explicit UID given by
-u already exists, you can override the error
message with this option, to create non-unique UIDs. |
-s shell |
Changes the user's default shell. |
-u uid |
Changes the user's identification number. It
must be unique, unless -o is given. |