deluser: prefix examples with sudo (#8174)

pull/1/head
kai 2022-07-11 05:36:24 -05:00 committed by GitHub
parent 88fd34d9f9
commit 057f52541c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -1,21 +1,20 @@
# deluser
> Delete a user from the system.
> Note: all commands must be executed as root.
> More information: <https://manpages.debian.org/latest/adduser/deluser.html>.
- Remove a user:
`deluser {{username}}`
`sudo deluser {{username}}`
- Remove a user and their home directory:
`deluser --remove-home {{username}}`
`sudo 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}}`
`sudo deluser --backup-to {{path/to/backup_directory}} --remove-home {{username}}`
- Remove a user, and all files owned by them:
`deluser --remove-all-files {{username}}`
`sudo deluser --remove-all-files {{username}}`