mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
24 lines
552 B
Markdown
24 lines
552 B
Markdown
![]() |
# 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}}`
|