HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
u
userdel(1M) userdel(1M)
10 Cannot modify the /etc/group file, but the login was removed from the
/etc/passwd file.
12 Unable to remove or modify the home directory.
13 Unable to open /etc/ptmp file or
/etc/passwd file is non-existent.
14 /etc/passwd
file or /etc/ptmp file busy. Another command may be modifying the
/etc/passwd file.
17 Cannot delete entry from /etc/passwd file.
18 Out of memory.
19 Invalid template file.
EXAMPLES
Remove the user otto from the system:
userdel otto
Remove the user bob from the system and delete
bob’s home directory from the system:
userdel -r bob
WARNINGS
Because many users may try to write the /etc/passwd file simultaneously, a password locking mechan-
ism was devised. If this locking fails after subsequent retrying, userdel terminates.
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
SEE ALSO
passwd(1), users(1), groupadd(1M), groupdel(1M), groupmod(1M), logins(1M), useradd(1M), usermod(1M),
group(4), passwd(4), shadow(4).
STANDARDS CONFORMANCE
userdel: SVID3
HP-UX 11i Version 3: February 2007 − 2 − Hewlett-Packard Company 591