#%PAM-1.0
# Starchaser's password prompt (polkit). It overrides /usr/lib/pam.d/polkit-1, which only includes
# system-auth, so that closing the prompt (Cancel, Esc or the close x) no longer counts as a wrong password.
# With system-auth as is, a closed prompt ends the conversation, pam_unix returns an authtok/conv error,
# and "default=bad" falls through to "pam_faillock authfail": Cancel plus two typos locked the account,
# sudo included, for 10 minutes.
# The auth lines are Arch's system-auth copied word for word except pam_unix's control: a closed prompt
# (authtok_err/conv_err) now stops right there ("die") without reaching authfail. A real wrong password
# is still "bad", so the lockout after repeated wrong passwords stays. If Arch changes system-auth's auth
# lines, update these to match.

auth       required                    pam_faillock.so      preauth
-auth      sufficient                  pam_fprintd.so       max-tries=1 timeout=10
-auth      [success=2 default=ignore]  pam_systemd_home.so
auth       [success=1 authtok_err=die conv_err=die default=bad]  pam_unix.so  try_first_pass nullok
auth       [default=die]               pam_faillock.so      authfail
auth       optional                    pam_permit.so
auth       required                    pam_env.so
auth       required                    pam_faillock.so      authsucc

account    include      system-auth
password   include      system-auth
session    include      system-auth
