changed file names and directories
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
This commit is contained in:
40
landing/docs/commands/access/deluser.md
Normal file
40
landing/docs/commands/access/deluser.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# The `deluser` command
|
||||
|
||||
The `deluser` command is used to delete a user account and related files
|
||||
|
||||
## Command Demo
|
||||
|
||||
<video src="/videos/commands/the-deluser-command.mp4" width="640" height="480" controls></video>
|
||||
|
||||
## Delete User
|
||||
|
||||
To delete a user with the `deluser` command the syntax would be the following:
|
||||
|
||||
```
|
||||
deluser userName
|
||||
```
|
||||
|
||||
## Delete User & Home Directory
|
||||
|
||||
To delete a user along with the files in the user’s home directory using the `deluser` command the syntax would be the following:
|
||||
|
||||
```
|
||||
deluser --remove-home userName
|
||||
```
|
||||
|
||||
## Basic Syntax:
|
||||
|
||||
```
|
||||
deluser [options] [--force] [--remove-home] [--remove-all-files]
|
||||
[--backup] [--backup-to DIR] user
|
||||
|
||||
```
|
||||
|
||||
## Possible Options:
|
||||
|
||||
|**Flag** |**Description** |
|
||||
|:---|:---|
|
||||
|`-f`|Force the removal of the specified user account even if the user is logged in|
|
||||
|`-r`|Remove the files in the user’s home directory along with the home directory itself and the user’s mail spool|
|
||||
|`-Z`|Remove any SELinux(Security-Enhanced Linux) user mapping for the user’s login.|
|
||||
|
||||
Reference in New Issue
Block a user