← 返回命令列表

Linux command

newusers 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

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]

说明

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

参数

-c _METHOD_
Encryption method.
-r
Create system accounts.
--help
Display help information.

FAQ

What is the newusers command used for?

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

How do I run a basic newusers example?

Run `newusers [users.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _METHOD_ do in newusers?

Encryption method.