rmusers(8) CLIX rmusers(8)
NAME
rmusers - Deletes a user account
SYNOPSIS
rmusers [-a] [username ... ]
FLAGS
-a Removes the user's home directory without asking. Without this flag,
rmusers prompts if the user's home directory is to be removed.
DESCRIPTION
The rmusers command is a system administration utility which deletes user
accounts. It edits the /etc/passwd file and removes the user's home
directory (if specified). If invoked with no specified usernames, rmusers
prompts for a list of usernames to remove. If the -a flag is given,
rmusers will automatically remove the home directories of the users
without asking. If -a is not specified, rmusers asks if the user's
directories are to be removed. Note that the directory removal question
applies to all users specified.
The rmusers utility processes all of the usernames specified. If the user
exists, rmusers removes the entry for that user from the /etc/passwd file.
If the user does not exist, rmusers skips it. If the -a flag was
specified, rmusers checks if the directory exists. If it does not exist,
rmusers exits; otherwise it removes the directory.
EXAMPLES
1. This example deletes the user doe, asking if the home directory is to
be removed.
rmusers doe
2. This example removes the user doe and the home directory.
rmusers -a doe
3. This example prompts for usernames and asks if the home directory for
each user is to be deleted.
rmusers
FILES
2/94 - Intergraph Corporation 1
rmusers(8) CLIX rmusers(8)
/etc/passwd The system password file.
NOTES
The rmusers utility contains support for the Network Information Services
(NIS) utilities.
Only the superuser can use this command.
DIAGNOSTICS
A username is not removed if the user does not exist.
A user's home directory will not be removed and rmusers will exit if the
directory does not exist.
EXIT VALUES
The following are exit values for the rmusers utility.
0 Successful execution of the command.
1 Could not determine user ID.
2 User ID was not 0 (superuser).
3 No write permission for /etc/passwd file.
4 Could not remove home directory (directory did not exist).
RELATED INFORMATION
Commands: addusers(8), sysadm(8)
Files: passwd(4)
2 Intergraph Corporation - 2/94