Useradd Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian

Useradd Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian

useradd

Create a new user.

Maintainer: Shadow package maintainers



Section: admin

Install useradd

  • Debian apt-get install passwd Click to copy
  • Ubuntu apt-get install passwd Click to copy
  • Alpine OS apk add shadow Click to copy
  • Arch Linux pacman -S shadow Click to copy
  • Kali Linux apt-get install passwd Click to copy
  • Fedora dnf install shadow-utils-2 Click to copy
  • Raspbian apt-get install passwd Click 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 copy
Create new user with a default home directory:
useradd --create-home nameClick to copy
Create new user with specified shell:
useradd --shell /path/to/shell nameClick to copy
Create new user belonging to additional groups (mind the lack of whitespace):
useradd --groups group1,group2 nameClick to copy
Create 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.