Useradd Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian
Install useradd
-
Debian
apt-get install passwdClick to copy -
Ubuntu
apt-get install passwdClick to copy -
Alpine OS
apk add shadowClick to copy -
Arch Linux
pacman -S shadowClick to copy -
Kali Linux
apt-get install passwdClick to copy -
Fedora
dnf install shadow-utils-2Click to copy -
Raspbian
apt-get install passwdClick to copy
Create a new user.
How to use useradd?
Below are few example commands for useradd that you can use in the terminal.
Create new user:useradd nameClick to copyCreate new user with a default home directory:useradd --create-home nameClick to copyCreate new user with specified shell:useradd --shell /path/to/shell nameClick to copyCreate new user belonging to additional groups (mind the lack of whitespace):useradd --groups group1,group2 nameClick to copyCreate new system user without a home directory:useradd --no-create-home --system nameClick to copy
Installing useradd command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of useradd 2026 package in your OS.




