deluser, userdel: add page (#5245)

This commit is contained in:
Mateusz Soszyński
2021-02-07 20:05:03 +01:00
committed by GitHub
parent a810ca72d7
commit 7dcdcea28c
3 changed files with 38 additions and 18 deletions

21
pages/linux/deluser.md Normal file
View File

@@ -0,0 +1,21 @@
# deluser
> Delete a user from the system.
> Note: all commands must be executed as root.
> More information: <https://manpages.debian.org/adduser/deluser.8.html>.
- Remove a user:
`deluser {{username}}`
- Remove a user and their home directory:
`deluser --remove-home {{username}}`
- Remove a user and their home, but backup their files into a `.tar.gz` file in the specified directory:
`deluser --backup-to {{path/to/backup_directory}} --remove-home {{username}}`
- Remove a user, and all files owned by them:
`deluser --remove-all-files {{username}}`