adduser

User addition utility. More information: <https://manpages.debian.org/latest/adduser/adduser.html>.

Install

All systems
curl cmd.cat/adduser.sh
Debian Debian
apt-get install adduser
Ubuntu
apt-get install adduser
image/svg+xml Kali Linux
apt-get install adduser
CentOS
yum install adduser
Fedora
dnf install adduser
Windows (WSL2)
sudo apt-get update sudo apt-get install adduser
Raspbian
apt-get install adduser

User addition utility. More information: <https://manpages.debian.org/latest/adduser/adduser.html>.

  • 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

© tl;dr; authors and contributors