1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 09:42:07 +02:00
tldr/pages/linux/adduser.md
2019-05-21 10:51:06 -03:00

653 B

adduser

User addition utility.

  • 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}}

  • Add an existing user to the specified group:

adduser {{username}} {{group}}