tldr/pages/linux/adduser.md

25 lines
650 B
Markdown
Raw Permalink Normal View History

2017-02-24 07:19:51 +00:00
# adduser
> User addition utility.
> More information: <https://manpages.debian.org/latest/adduser/adduser.html>.
2017-02-24 07:19:51 +00:00
- Create a new user with a default home directory and prompt the user to set a password:
2017-02-24 07:19:51 +00:00
`adduser {{username}}`
2017-02-24 07:19:51 +00:00
- Create a new user without a home directory:
`adduser --no-create-home {{username}}`
2017-02-24 07:19:51 +00:00
- Create a new user with a home directory at the specified path:
`adduser --home {{path/to/home}} {{username}}`
2017-02-24 07:19:51 +00:00
- Create a new user with the specified shell set as the login shell:
`adduser --shell {{path/to/shell}} {{username}}`
2017-02-24 07:19:51 +00:00
- Create a new user belonging to the specified group:
`adduser --ingroup {{group}} {{username}}`