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
{{ message }}
Repository navigation
skip pam_u2f for plasma-login-manager and sddm #479
I have a CanoKey. After enabling the with-pam-u2f feature using authselect, I ran into a problem when logging into my account with plasma-login-manager.
In theory, only one of pam_unix and pam_u2f needs to authenticate successfully. But in actual use, I have to enter the correct password first, and then complete pam_u2f authentication when prompted by the login screen.
So, should pam_u2f be skipped when plasma-login-manager performs PAM authentication? As follows:
--- /usr/share/authselect/default/local/password-auth 2025-09-30 08:00:00.000000000 +0800
+++ /etc/authselect/custom/local-fix/password-auth 2026-09-27 13:53:11.024678885 +0800
@@ -1,6 +1,7 @@
auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth required pam_faillock.so preauth silent {include if "with-faillock"}
+auth [success=1 default=ignore] pam_succeed_if.so service in sddm:plasmalogin quiet use_uid {include if "with-pam-u2f"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}
auth required pam_u2f.so cue {if not "without-pam-u2f-nouserok":nouserok} {include if "with-pam-u2f-2fa"}
auth sufficient pam_unix.so {if not "without-nullok":nullok}
Activity