2017-02-24 02:19:51 -05:00
|
|
|
# adduser
|
|
|
|
|
|
|
|
> User addition utility.
|
2024-09-18 11:00:49 +02:00
|
|
|
> More information: <https://manned.org/adduser>.
|
2017-02-24 02:19:51 -05:00
|
|
|
|
2017-04-17 21:42:04 +01:00
|
|
|
- Create a new user with a default home directory and prompt the user to set a password:
|
2017-02-24 02:19:51 -05:00
|
|
|
|
2017-04-17 21:42:04 +01:00
|
|
|
`adduser {{username}}`
|
2017-02-24 02:19:51 -05:00
|
|
|
|
|
|
|
- Create a new user without a home directory:
|
|
|
|
|
2017-04-17 21:42:04 +01:00
|
|
|
`adduser --no-create-home {{username}}`
|
2017-02-24 02:19:51 -05:00
|
|
|
|
|
|
|
- Create a new user with a home directory at the specified path:
|
|
|
|
|
2017-04-17 21:42:04 +01:00
|
|
|
`adduser --home {{path/to/home}} {{username}}`
|
2017-02-24 02:19:51 -05:00
|
|
|
|
|
|
|
- Create a new user with the specified shell set as the login shell:
|
|
|
|
|
2017-04-17 21:42:04 +01:00
|
|
|
`adduser --shell {{path/to/shell}} {{username}}`
|
2017-02-24 02:19:51 -05:00
|
|
|
|
|
|
|
- Create a new user belonging to the specified group:
|
|
|
|
|
2017-04-17 21:42:04 +01:00
|
|
|
`adduser --ingroup {{group}} {{username}}`
|