You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite what the documentation implies, try_first_pass does absolutely nothing when applied to pam_unix.so.
use_authtok does exactly the same thing as use_first_pass when applied to pam_unix.so: It uses the previously entered password if there was a previously entered password AND that password meets the previous modules' password quality requirements. Otherwise, it strictly fails.
If neither use_first_pass nor use_authtok is applied to pam_unix.so, behavior depends on whether a password was previously entered. If there was not a previously entered password, pam_unix.so graciously prompts for one. If there was, pam_unix.so behaves as if use_first_pass or use_authtok was set.
This is all for pam_unix.so. Beware that try_first_pass, use_first_pass, and use_authtok work differently in other PAM modules.
The text was updated successfully, but these errors were encountered:
Used here:
pambase/templates/system-auth.tpl
Line 24 in f6e52e5
pambase/templates/system-auth.tpl
Line 74 in f6e52e5
See answer here:
https://unix.stackexchange.com/questions/687772/whats-the-difference-between-use-authtok-and-try-first-pass-or-use-first-pass-i
Copied below:
The text was updated successfully, but these errors were encountered: