newusers

creates multiple users at once

TLDR

Create users from file
$ newusers [users.txt]
Read from stdin
$ echo "[user:password:uid:gid:gecos:home:shell]" | newusers
Crypt method
$ newusers -c [SHA512] [users.txt]
System defaults
$ newusers -r [users.txt]

SYNOPSIS

newusers [options] [file]

DESCRIPTION

newusers creates multiple users at once. It reads user data from a file.The tool processes passwd-format entries. Batch user creation for administrators.

PARAMETERS

FILE

File with user entries.
-c METHOD
Encryption method.
-r
Create system accounts.
--help
Display help information.

INSTALL

sudo apt install passwd
sudo pacman -S shadow
sudo apk add shadow
sudo zypper install shadow
nix profile install nixpkgs#shadow

CAVEATS

Requires root. Specific file format. Passwords in plaintext during input.

HISTORY

newusers is part of shadow-utils, providing batch user creation on Unix systems.

SEE ALSO

useradd(1), passwd(1), chpasswd(1)