Users & Access · about 2 min · 5 steps
Delete a user
Removes an account so it can never sign in again, and optionally its home directory after saving a copy.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported
- Alpine: supported
What it changes on your server
- Deletes the account, its sudo rule from Shellbay and its crontab.
- If chosen: saves the home directory to /var/backups/shellbay (root-only), then deletes it. Otherwise the home directory is kept.
What Shellbay asks you
Which account should be deleted?
If you might need it again, use Lock a user instead. Stop any app the account runs first.
- Account
- A new Linux account name
Example:
aliceDelete its home directory too?
Off keeps the files where they are. On saves a compressed copy in /var/backups/shellbay, then deletes the directory. Only directories under /home are deleted.
- Also delete the home directory
- On or off. Default: off
Steps
- Check the account can be deleted
- Save a copy of the home directory
- Delete the account
- Delete the home directory
- Check the account is gone
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- ‹account› is gone. If you deleted its home directory, the copy is in /var/backups/shellbay; remove it with Prune old backups when you no longer need it.