Name
chkpasswd
Synopsis
chkpasswd [-c] [-iinfosystem] [-llocation] [username]
Useful for scripts, this prompts for a password that is then compared
against the appropriate directory service for the user specified. If
the password is incorrect, the string Sorry is
output. (Strangely, chkpasswd appears to have a
return value of 0 in either case.)
Options
-
-c User input is compared with the password hash directly, rather than running it through the
cryptalgorithm first.-
-i Specifies the directory service to use, and may be
file,netinfo(the default), ornis.-
-l Depending on the directory service being used, it’s either a filename (defaults to
/etc/master.passwd), a NetInfo domain name or server/tag combo, or an NIS domain name.- u
sername Designates whose password will be checked. It defaults to that of the user running the command.
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