userdel(1M) DG/UX R4.11 userdel(1M)
NAME
userdel - delete a user's login from the system
SYNOPSIS
userdel [-y] [-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
system.
The following options are available:
-y Perform the requested operation on the global NIS (YP)
database. Without this option, the requested operation is
performed on the local database in the /etc directory. This
option is valid only when the machine on which the command is
run is the NIS master. The -y option uses the default source
directory derived from the SRC_DIR variable specified in the
NIS makefile (/etc/yp/Makefile).
-r Remove 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
successful 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).
FILES
/etc/passwd
/etc/group
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.
SEE ALSO
groupadd(1M), groupdel(1M), groupmod(1M), listusers(1), logins(1M),
passwd(1), useradd(1M), usermod(1M).
Licensed material--property of copyright holder(s)