Manual page for userdel(1M)
userdel - delete a user's login from the system
SYNOPSIS
userdel
[
-r
]
login
AVAILABILITY
SUNWcsu
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.
OPTIONS
- -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 specify an existing login on the
system.
It may not contain a colon (:) or a newline (\n).
FILES
- /etc/passwd
-
- /etc/shadow
-
- /etc/group
-
SEE ALSO
passwd.1
users.1b
groupadd.1m
groupdel.1m
groupmod.1m
logins.1m
useradd.1m
usermod.1m
passwd.4
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.
NOTES
userdel
only deletes a user definition that is in the local
/etc/passwd
file.
If a network name service such as
NIS
or
NIS+
is being used to supplement the local
/etc/passwd
file with additional entries,
userdel
cannot change information supplied by the network name service.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97