Manual Reference Pages - RMUSER (8)
- remove users from the system
utility removes one or more users submitted on the command line
or from a file.
In removing a user from the system, this utility:
- Removes the users
entry (if any).
- Removes any
jobs belonging to the user.
- Sends a
signal to all processes owned by the user.
- Removes the user from the systems local password file.
- Removes the users home directory (if it is owned by the user),
including handling of symbolic links in the path to the actual home
- Removes the incoming mail and POP daemon mail files belonging to the
- Removes all files owned by the user from
- Removes the username from all groups to which it belongs in
(If a group becomes empty and the group name is the same as the username,
the group is removed; this complements
adduser 8 s
per-user unique groups.)
- Removes all message queues, shared memory segments and
semaphores owned by the user.
utility refuses to remove users whose UID is 0 (typically root), since
certain actions (namely, killing all the users processes, and perhaps
removing the users home directory) would cause damage to a running system.
If it is necessary to remove a user whose UID is 0, see
for information on directly editing the password file.
was not invoked with the
option, it will
show the selected users password file entry and ask for confirmation
that the user be removed.
It will then ask for confirmation to delete
the users home directory.
If the answer is in the affirmative, the home
directory and any files and subdirectories under it will be deleted only if
they are owned by the user.
for more details.
operates, it informs the user regarding the current activity.
errors occur, they are posted to standard error and, if it is possible for
to continue, it will.
The options are as follows:
utility will get a list of users to be removed from
which will contain one user per line.
Anything following a hash mark
including the hash mark itself, is considered a comment and will not
If the file is owned by anyone other than a user with
UID 0, or is writable by anyone other than the owner,
will refuse to continue.
to any and all prompts.
Currently, this includes
prompts on whether to remove the specified user and whether to remove
the home directory.
This option requires that either the
option be used, or one or more user names be given as command line
Enable verbose mode.
the output includes one line per removed user;
with this option
will be much more chatty about the steps taken.
Identifies one or more users to be removed; if not present,
interactively asks for one or more users to be removed.
utility appeared in
.Fx 2.2 .
utility does not comprehensively search the file system for all files
owned by the removed user and remove them; to do so on a system
of any size is prohibitively slow and I/O intensive.
It is also unable to remove symbolic links that were created by the
as symbolic links on
file systems do not contain information
as to who created them.
Also, there may be other files created in
that are not owned by the removed user but should be removed.
utility has no knowledge of YP/NIS, and it operates only on the
local password file.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.