1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 01:04:59 +00:00
serenity/Base/usr/share/man/man8/userdel.md
kleines Filmröllchen afaea38be2 Base: Expand "See Also" sections of many manpages
This commit focuses on the CLI utilities.
2023-07-06 10:03:48 +01:00

778 B

Name

userdel - delete a user account

Synopsis

# userdel [-r] <login>

Description

This program deletes a user account in the system.

This program must be run as root.

Options

  • -r, --remove: Remove the home directory for this user if the directory exists.

Exit Values

  • 0 - Success
  • 1 - Couldn't update the password file
  • 6 - Specified user doesn't exist
  • 12 - Couldn't remove home directory

Files

  • /etc/passwd - user information (such as UID and GID) in this file is deleted.
  • /home/ - user home directory is deleted if the -r flag is specified.

Examples

# userdel alice
# userdel -r alice
# userdel --remove alice

See Also