Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
usermod(8) OSS Shell and Utilities Reference Manual
• The -p option is not recommended because the password will be visible
by users listing the processes. This option is only valid on systems run-
ning Safeguard.
• The password must respect the system password policy.
CAVEATS
• You must verify the named user is not executing any processes when this
command is being executed if the user’s name, or the user’s home direc-
tory is being changed.
• You must change the owner of any crontab files or at jobs manually.
CONFIGURATION
The following configuration variables in /etc/default/users change the behavior of this tool:
GROUP
When a partial name is specified as LOGIN, the group name and corresponding group
number will be taken from the GROUP variable in the /etc/default/users file. The GROUP
variable is specified in the format GROUP=groupName,groupNumber. For example,
GROUP=TEST,99.
FILES:
/etc/default/users
Default values for account creation.
EXIT VALUES
The usermod command exits with the following values:
0 success
1 cannot set password
2 invalid command syntax
3 invalid argument to option
4 LOGIN does not exist
5 alias does not exist
6 specified group (name or number) does not exist
8 user or alias currently logged in
11 insufficient privilege
12 cannot move home directory contents to new location
15 Safeguard is not available, invalid option
RELATED INFORMATION
login.defs(5), users(5), newusers(8), useradd(8), userdel(8).
12−78 Hewlett-Packard Company 527188-021