LinuxCommandLibrary

newusers

creates multiple users at once

TLDR

Create users from file

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

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community