Hi, I’m trying to get my FIDO 2 tokens to work with SDDM/Plasma. I followed the excellent guide posted here written by @pavinjoseph and managed to get sudo and sudo -i working perfectly in the terminal.
However, when I tried adding auth sufficient pam_u2f.so authfil e=/etc/Yubico/u2f_keys cue to /etc/pam.d/sddm, GUI prompts still require the root password.
#%PAM-1.0
auth requisite pam_nologin.so
auth sufficient pam_u2f.so authfile=/etc/Yubico/u2f_keys cue <<< added this line
auth substack common-auth
account substack common-account
account include postlogin-account
password substack common-password
password include postlogin-password
session required pam_loginuid.so
session optional pam_keyinit.so revoke force
session substack common-session
session include postlogin-session
Afterwards I tried the more dangerous method of directly modifying the /etc/pam.d/common-auth file like mentioned in the guide to see if that would work, but I was still prompted for the root password.
pavin@suse-pc:~> sudo journalctl -p3 -b -g pam | cat
Feb 21 08:06:31 suse-pc gdm-autologin][6584]: gkr-pam: couldn't get the password from user: Conversation error
Feb 21 08:15:47 suse-pc sudo[14424]: pam_unix(sudo:auth): conversation failed
Feb 21 08:15:47 suse-pc sudo[14424]: pam_unix(sudo:auth): auth could not identify password for [root]