chpasswd
linux
Change the passwords for multiple users by using `stdin`. See also: `passwd`.
More info →Options (2)
-e, --encryptedbooleanChange the password for a specific user, and specify it in encrypted form
Example:
printf "{{username}}:{{new_encrypted_password}}" | sudo chpasswd {{[-e|--encrypted]}}-c, --crypt-methodbooleanChange the password for a specific user, and use a specific encryption for the stored password
Example:
printf "{{username}}:{{new_password}}" | sudo chpasswd {{[-c|--crypt-method]}} {{NONE|DES|MD5|SHA256|SHA512}}Examples (4)
Change the passwords for multiple users (The input text must not contain any spaces.)
Change the password for a specific user, and specify it in encrypted form
made by @shridhargupta | data from tldr-pages