mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 08:48:43 +00:00
Update cheatsheets
This commit is contained in:
29
linux/adduser
Normal file
29
linux/adduser
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adduser
|
||||
|
||||
> User addition utility.
|
||||
> More information: <https://manpages.debian.org/latest/adduser/adduser.html>.
|
||||
|
||||
- Create a new user with a default home directory and prompt the user to set a password:
|
||||
|
||||
`adduser {{username}}`
|
||||
|
||||
- Create a new user without a home directory:
|
||||
|
||||
`adduser --no-create-home {{username}}`
|
||||
|
||||
- Create a new user with a home directory at the specified path:
|
||||
|
||||
`adduser --home {{path/to/home}} {{username}}`
|
||||
|
||||
- Create a new user with the specified shell set as the login shell:
|
||||
|
||||
`adduser --shell {{path/to/shell}} {{username}}`
|
||||
|
||||
- Create a new user belonging to the specified group:
|
||||
|
||||
`adduser --ingroup {{group}} {{username}}`
|
||||
Reference in New Issue
Block a user