Name

chpasswd

Synopsis

chpasswd [options]

System administration command. Change user passwords in a batch. chpasswd accepts input in the form of one username:password pair per line. Unless the -e option is specified, password is encrypted before being stored. This command doesn’t use PAM. It updates the /etc/passwd and /etc/shadow files.

Option

-e, --encrypted

Passwords given are already encrypted.

-m, --md5

Use MD5 Encryption

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.