mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 10:35:25 +02:00
adduser: add page (#1276)
This commit is contained in:
parent
8fdc908325
commit
87340067fe
1 changed files with 23 additions and 0 deletions
23
pages/linux/adduser.md
Normal file
23
pages/linux/adduser.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# adduser
|
||||
|
||||
> User addition utility.
|
||||
|
||||
- Create a new user with a default home directory and prompts the user to set a password:
|
||||
|
||||
`adduser {{name}}`
|
||||
|
||||
- Create a new user without a home directory:
|
||||
|
||||
`adduser --no-create-home {{name}}`
|
||||
|
||||
- Create a new user with a home directory at the specified path:
|
||||
|
||||
`adduser --home {{path/to/home}} {{name}}`
|
||||
|
||||
- Create a new user with the specified shell set as the login shell:
|
||||
|
||||
`adduser --shell {{path/to/shell}} {{name}}`
|
||||
|
||||
- Create a new user belonging to the specified group:
|
||||
|
||||
`adduser --ingroup {{group}} {{name}}`
|
Loading…
Add table
Reference in a new issue