Section: Linux-PAM Manual (8)
Return to Main Contents
unix_chkpwd - helper binary that verifies the password of the current user
unix_chkpwd is a helper program for the pam_unix module that verifies
the password of the current user. It is not intended to be run directly from
the command line and logs a security violation if done so.
It is typically installed setuid root or setgid shadow.
unix_pwdchk optionally takes the following argument:
The username of the user whose password you want to check: this must match the current user id.
unix_pwdchk expects the following inputs via stdin:
Either nullok or nonull, depending on whether the user can have an empty password.
The password to verify.
unix_chkpwd has the following return codes:
unix_chkpwd was inappropriately called from the command line or the password is incorrect.
The password is correct.
Written by Andrew Morgan
- RETURN CODES
- SEE ALSO
linux.jgfs.net manual pages