I have a Fedora KDE spin installation on a laptop with a fingerprint reader, onto which I have installed Sway WM (dnf group install @swaywm-extended
). Under Plasma when I lock my screen I can unlock with a password just fine, but when locking the screen with Swaylock under Sway it seems to only want to accept my fingerprint. There’s no password entry box but as I type I can see the circle indicator reacting to my typing, and when I hit enter it says “Verifying” and then nothing happens - it just sits like that. If I touch my fingerprint reader at this point the screen will unlock, and this happens whether or not the password I entered was correct.
I haven’t made any changes to any pam.d files, so my assumption is that something is incompatible here out of the box, possibly because of KDE having been previously installed? And if it matters I’m using lightdm as my greeter.
Contents of /etc/pam.d/swaylock:
/etc/pam.d/swaylock
auth include login
Contents of /etc/pam.d/login:
/etc/pam.d/login
#%PAM-1.0
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
#pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
#pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
Contents of /etc/pam.d/system-auth:
/etc/pam.d/system-auth
auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth sufficient pam_fprintd.so
auth sufficient pam_unix.so nullok
auth required pam_deny.so
account required pam_unix.so
password requisite pam_pwquality.so
password sufficient pam_unix.so yescrypt shadow nullok use_authtok
password required pam_deny.so
session optional pam_keyinit.so revoke
session required pam_limits.so
-session optional pam_systemd.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
Contents of /etc/pam.d/postlogin:
/etc/pam.d/postlogin
session optional pam_umask.so silent
session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet
session [default=1] pam_lastlog.so nowtmp silent
session optional pam_lastlog.so silent noupdate showfailed
What do I need to do to be able to use a password for unlocking my screen?