You are not logged in.

#1 2025-02-12 22:46:45

66Gramms
Member
Registered: 2021-01-16
Posts: 3

[SOLVED] SDDM Fingerprint login not working

I'm trying to get the fingerprint scanner on my thinkpad x1 yoga 4th gen to work with SDDM. Ive followed the arch wiki but editing the /etc/pam.d/sddm file according to it messes up both password and fingerprint login leaving me to go to tty2 and comment the changes in the config so I can login. It doesn't matter if I try using my fingerprint first or the password. After a few tries I get a "login failed!" message in my sddm theme.

Result of fprintd-verify:

Using device /net/reactivated/Fprint/Device/0
Listing enrolled fingers:
 - #0: right-index-finger
Verify started!
Verifying: right-index-finger
Verify result: verify-match (done)

My /etc/pam.d/sddm config (the first 2 auth lines are copied from the wiki I have to comment this to be able to login)

#%PAM-1.0

auth        [succes=1 new_authtok_reqd=1 default=ignore] pam_unix.so try_first_pass likeauth nullok
auth        sufficient   pam_fprintd.so

auth        include     system-login
-auth       optional    pam_gnome_keyring.so
-auth       optional    pam_kwallet5.so

account     include     system-login

password    include     system-login
-password   optional    pam_gnome_keyring.so    use_authtok

session     optional    pam_keyinit.so          force revoke
session     include     system-login
-session    optional    pam_gnome_keyring.so    auto_start
-session    optional    pam_kwallet5.so         auto_start

The logs from journalctl for sddm from a boot where i try using fingerprint, then after a few tries I also try password.

febr 12 23:51:24 thinkpad systemd[1]: Started Simple Desktop Display Manager.
febr 12 23:51:24 thinkpad sddm[765]: Initializing...
febr 12 23:51:24 thinkpad sddm[765]: Starting...
febr 12 23:51:24 thinkpad sddm[765]: Logind interface found
febr 12 23:51:24 thinkpad sddm[765]: Adding new display...
febr 12 23:51:24 thinkpad sddm[765]: Loaded empty theme configuration
febr 12 23:51:24 thinkpad sddm[765]: Using VT 1
febr 12 23:51:24 thinkpad sddm[765]: Display server started.
febr 12 23:51:24 thinkpad sddm[765]: Socket server starting...
febr 12 23:51:24 thinkpad sddm[765]: Socket server started.
febr 12 23:51:24 thinkpad sddm[765]: Loading theme configuration from "/usr/share/sddm/themes/Eucalyptus-drop/theme.conf"
febr 12 23:51:24 thinkpad sddm[765]: Greeter starting...
febr 12 23:51:24 thinkpad sddm-helper[775]: [PAM] Starting...
febr 12 23:51:24 thinkpad sddm-helper[775]: [PAM] Authenticating...
febr 12 23:51:24 thinkpad sddm-helper[775]: [PAM] returning.
febr 12 23:51:24 thinkpad sddm-helper[775]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=965) by (uid=0)
febr 12 23:51:24 thinkpad sddm[765]: Greeter session started successfully
febr 12 23:51:24 thinkpad sddm-helper[775]: [PAM] Closing session
febr 12 23:51:24 thinkpad sddm-helper[775]: pam_unix(sddm-greeter:session): session closed for user sddm
febr 12 23:51:24 thinkpad sddm-helper[775]: [PAM] Ended.
febr 12 23:51:24 thinkpad sddm[765]: Auth: sddm-helper exited with 4
febr 12 23:51:24 thinkpad sddm[765]: Greeter stopped. SDDM::Auth::HELPER_DISPLAYSERVER_ERROR
febr 12 23:51:24 thinkpad sddm[765]: Removing display SDDM::Display(0x59ef39993e90) ...
febr 12 23:51:24 thinkpad sddm[765]: Socket server stopping...
febr 12 23:51:24 thinkpad sddm[765]: Socket server stopped.
febr 12 23:51:24 thinkpad sddm[765]: Failed to launch the display server, falling back to DisplayServer=x11-user
febr 12 23:51:24 thinkpad sddm[765]: Adding new display...
febr 12 23:51:24 thinkpad sddm[765]: Loaded empty theme configuration
febr 12 23:51:24 thinkpad sddm[765]: Using VT 1
febr 12 23:51:24 thinkpad sddm[765]: Display server started.
febr 12 23:51:24 thinkpad sddm[765]: Socket server starting...
febr 12 23:51:24 thinkpad sddm[765]: Socket server started.
febr 12 23:51:24 thinkpad sddm[765]: Loading theme configuration from "/usr/share/sddm/themes/Eucalyptus-drop/theme.conf"
febr 12 23:51:24 thinkpad sddm[765]: Greeter starting...
febr 12 23:51:24 thinkpad sddm-helper[800]: [PAM] Starting...
febr 12 23:51:24 thinkpad sddm-helper[800]: [PAM] Authenticating...
febr 12 23:51:24 thinkpad sddm-helper[800]: [PAM] returning.
febr 12 23:51:24 thinkpad sddm-helper[800]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=965) by (uid=0)
febr 12 23:51:24 thinkpad sddm-helper[800]: Starting X11 session: "/usr/bin/X -nolisten tcp -background none -seat seat0 -noreset -keeptty -novtswitch -verbose 3" "/usr/bin/sddm-greeter-qt6 --socket /tmp/sddm--jmAVMz --theme /usr/share/sddm/themes/Eucalyptus-drop"
febr 12 23:51:24 thinkpad sddm[765]: Greeter session started successfully
febr 12 23:51:25 thinkpad sddm[765]: Message received from greeter: Connect
febr 12 23:51:28 thinkpad sddm[765]: Message received from greeter: Login
febr 12 23:51:28 thinkpad sddm[765]: Reading from "/usr/share/wayland-sessions/hyprland.desktop"
febr 12 23:51:28 thinkpad sddm[765]: Session "/usr/share/wayland-sessions/hyprland.desktop" selected, command: "Hyprland" for VT 2
febr 12 23:51:28 thinkpad sddm-helper[840]: PAM pam_parse: expecting return value; [...succes=1 new_authtok_reqd=1 default=ignore]
febr 12 23:51:28 thinkpad sddm-helper[840]: [PAM] Starting...
febr 12 23:51:28 thinkpad sddm-helper[840]: [PAM] Authenticating...
febr 12 23:51:28 thinkpad sddm-helper[840]: [PAM] Preparing to converse...
febr 12 23:51:28 thinkpad sddm-helper[840]: [PAM] Conversation with 1 messages
febr 12 23:51:28 thinkpad sddm-helper[840]: pam_unix(sddm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=gramms
febr 12 23:51:28 thinkpad sddm-helper[840]: [PAM] Preparing to converse...
febr 12 23:51:28 thinkpad sddm-helper[840]: [PAM] Conversation with 1 messages
febr 12 23:51:28 thinkpad sddm[765]: Authentication information: SDDM::Auth::INFO_UNKNOWN "Place your right index finger on the fingerprint reader"
febr 12 23:51:32 thinkpad sddm-helper[840]: [PAM] authenticate: Authentication failure
febr 12 23:51:32 thinkpad sddm-helper[840]: [PAM] returning.
febr 12 23:51:32 thinkpad sddm[765]: Authentication error: SDDM::Auth::ERROR_AUTHENTICATION "Authentication failure"
febr 12 23:51:32 thinkpad sddm[765]: Authentication for user  ""  failed
febr 12 23:51:32 thinkpad sddm-helper[840]: PAM 1 more authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=gramms
febr 12 23:51:32 thinkpad sddm-helper[840]: [PAM] Asked to close the session but it wasn't previously open
febr 12 23:51:32 thinkpad sddm-helper[840]: [PAM] Ended.
febr 12 23:51:32 thinkpad sddm[765]: Auth: sddm-helper exited with 1
febr 12 23:51:35 thinkpad sddm[765]: Message received from greeter: Login
febr 12 23:51:35 thinkpad sddm[765]: Reading from "/usr/share/wayland-sessions/hyprland.desktop"
febr 12 23:51:35 thinkpad sddm[765]: Session "/usr/share/wayland-sessions/hyprland.desktop" selected, command: "Hyprland" for VT 2
febr 12 23:51:35 thinkpad sddm-helper[862]: PAM pam_parse: expecting return value; [...succes=1 new_authtok_reqd=1 default=ignore]
febr 12 23:51:35 thinkpad sddm-helper[862]: [PAM] Starting...
febr 12 23:51:35 thinkpad sddm-helper[862]: [PAM] Authenticating...
febr 12 23:51:35 thinkpad sddm-helper[862]: [PAM] Preparing to converse...
febr 12 23:51:35 thinkpad sddm-helper[862]: [PAM] Conversation with 1 messages
febr 12 23:51:35 thinkpad sddm-helper[862]: pam_unix(sddm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=gramms
febr 12 23:51:36 thinkpad sddm-helper[862]: [PAM] Preparing to converse...
febr 12 23:51:36 thinkpad sddm-helper[862]: [PAM] Conversation with 1 messages
febr 12 23:51:36 thinkpad sddm[765]: Authentication information: SDDM::Auth::INFO_UNKNOWN "Place your right index finger on the fingerprint reader"
febr 12 23:51:38 thinkpad sddm-helper[862]: [PAM] authenticate: Authentication failure
febr 12 23:51:38 thinkpad sddm-helper[862]: [PAM] returning.
febr 12 23:51:38 thinkpad sddm-helper[862]: PAM 1 more authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=gramms
febr 12 23:51:38 thinkpad sddm[765]: Authentication error: SDDM::Auth::ERROR_AUTHENTICATION "Authentication failure"
febr 12 23:51:38 thinkpad sddm-helper[862]: [PAM] Asked to close the session but it wasn't previously open
febr 12 23:51:38 thinkpad sddm[765]: Authentication for user  ""  failed
febr 12 23:51:38 thinkpad sddm-helper[862]: [PAM] Ended.
febr 12 23:51:38 thinkpad sddm[765]: Auth: sddm-helper exited with 1

Any and all help would be much appreciated, cheers!

Last edited by 66Gramms (2025-02-13 14:58:00)

Offline

#2 2025-02-13 14:56:39

66Gramms
Member
Registered: 2021-01-16
Posts: 3

Re: [SOLVED] SDDM Fingerprint login not working

I've managed to find a solution by linking my post to ChatGPT. The problem was mispelling in the configuration of /etc/pam.d/sddm file where instead of success I've accidently typed succes

Offline

Board footer

Powered by FluxBB