Name
passwd
Synopsis
The
passwd
command is used to compute common
password hashes that are typically used for system passwords on
various Unix systems.
Options
- -1
Use BSD’s MD5-based algorithm.
- -apr1
Use an Apache variant of the
apr1algorithm.- -quiet
Suppress warning messages when passwords are truncated.
- -salt salt
Specify the salt to use.
- -in filename
Specify the name of a file from which plaintext passwords should be read. Each line contains one password, and a hash will be computed for each.
- -stdin
Cause passwords to be read from
stdinwithout prompting or suppressing echo.- -table
Cause both the plaintext password and the generated hash to be output in tabular form.
Notes
By default, the standard Unix crypt hash will be used, which limits the length of plaintext passwords to eight characters. The other two supported hash algorithms have no limit on password length.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access