useradd, userdel, usedmod, users: refresh page (#7661)
This commit is contained in:

committed by
GitHub

parent
3a104d8676
commit
684f7bbc65
@@ -1,21 +1,17 @@
|
||||
# userdel
|
||||
|
||||
> Remove a user account or remove a user from a group.
|
||||
> Note: all commands must be executed as root.
|
||||
> See also: `users`, `useradd`, `usermod`.
|
||||
> More information: <https://manned.org/userdel>.
|
||||
|
||||
- Remove a user:
|
||||
|
||||
`userdel {{name}}`
|
||||
|
||||
- Remove a user along with their home directory and mail spool:
|
||||
|
||||
`userdel --remove {{name}}`
|
||||
|
||||
- Remove a user from a group:
|
||||
|
||||
`userdel {{name}} {{group}}`
|
||||
`sudo userdel {{username}}`
|
||||
|
||||
- Remove a user in other root directory:
|
||||
|
||||
`userdel --root {{path/to/other/root}} {{name}}`
|
||||
`sudo userdel --root {{path/to/other/root}} {{username}}`
|
||||
|
||||
- Remove a user along with the home directory and mail spool:
|
||||
|
||||
`sudo userdel --remove {{username}}`
|
||||
|
Reference in New Issue
Block a user