userdel(1M) userdel(1M)
NAME
userdel - delete a user's login from the system
SYNOPSIS
userdel [-r] login
DESCRIPTION
The userdel command deletes a user's login from the system and makes
the appropriate login-related changes to the system file and file sys-
tem.
OPTIONS
-r Removes the user's home directory from the system. This
directory must exist. The files and directories under the
home directory will no longer be accessible following suc-
cessful execution of the command.
login A string of printable characters that specifies an existing
login on the system. It may not contain a colon (:), or a
newline (\n).
DIAGNOSTICS
The userdel command exits with one of the following values:
0 = Success.
2 = Invalid command syntax. A usage message for the userdel command
is displayed.
6 = The login to be removed does not exist.
8 = The login to be removed is in use.
10 = Cannot update the /etc/group file but the login is removed from
the /etc/passwd file.
12 = Cannot remove or otherwise modify the home directory.
LOCALE
The LCMESSAGES environment variable governs the language in which
message texts are displayed.
If LCMESSAGES is undefined or is defined as the null string, it
defaults to the value of LANG. If LANG is likewise undefined or null,
the system acts as if it were not internationalized.
If any of the locale variables has an invalid value, the system acts
as if none of the variables was set.
The LCALL environment variable governs the entire locale. LCALL
takes precedence over all the other environment variables which affect
internationalization.
Page 1 Reliant UNIX 5.44 Printed 11/98
userdel(1M) userdel(1M)
FILES
/etc/passwd
/etc/shadow
/etc/group
/etc/security/ia/index
/etc/security/ia/master
/etc/security/ia/uidage
SEE ALSO
passwd(1), users(1), groupadd(1M), groupdel(1M), groupmod(1M),
logins(1M), useradd(1M), usermod(1M), group(4), passwd(4), shadow(4).
Page 2 Reliant UNIX 5.44 Printed 11/98