OS Manuals

/usr/bin/chpasswd

PAM login and passwd utilities

From shadow 4.20.3-r3 (os), captured 2026-11-05 by running chpasswd --help (exit 0). permalink

Usage: chpasswd [options]

Options:
  -c, --crypt-method METHOD     the crypt method (one of NONE SHA256 SHA512 YESCRYPT)
  -e, --encrypted               supplied passwords are encrypted
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       directory prefix
  -s, --sha-rounds              number of rounds for the SHA, BCRYPT
                                or YESCRYPT crypt algorithms
Options (6)
OptionDescriptionSource
-c, --crypt-method METHODthe crypt method (one of NONE SHA256 SHA512 YESCRYPT)help
-e, --encryptedsupplied passwords are encryptedhelp
-h, --helpdisplay this help message and exithelp
-R, --root CHROOT_DIRdirectory to chroot intohelp
-P, --prefix PREFIX_DIRdirectory prefixhelp
-s, --sha-roundsnumber of rounds for the SHA, BCRYPT or YESCRYPT crypt algorithmshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.