HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
u
usermod(1M) usermod(1M)
EXAMPLES
Change otto’s primary group to staff.
usermod -g staff otto
Change otto’s user ID to 333 and change the login name to
bob.
usermod -u 333 -l bob otto
WARNINGS
As many users may try to write the
/etc/passwd file simultaneously, a passwd locking mechanism was
devised. If this locking fails after subsequent retrying,
usermod terminates.
While modifying the user login, the username is not added to the primary group entry in the
/etc/group file. If a supplemental group is specified, the user is added to the supplemental group. If
the size of a group entry in /etc/group
file exceeds LINE_MAX limit, a new entry of the same group is
created and a warning message is issued.
FILES
/etc/shadow Shadow Password file
/etc/passwd System Password file
/etc/group System group file
/etc/ptmp Lock file used when updating password file
/var/adm/userdb user database
SEE ALSO
passwd(1), users(1), groupadd(1M), groupdel(1M), groupmod(1M), logins(1M), pwconv(1M), useradd(1M),
userdel(1M), group(4), shadow(4), usermod(4).
STANDARDS CONFORMANCE
usermod: SVID3
HP-UX 11i Version 2: December 2007 Update − 3 − Hewlett-Packard Company 583