Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PAM authentication error causes SDDM crash
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
axease
n00b
n00b


Joined: 30 Mar 2024
Posts: 3

PostPosted: Sat Mar 30, 2024 3:19 pm    Post subject: PAM authentication error causes SDDM crash Reply with quote

I can't login to my desktop.

the sddm crash when i upgrade sddm to 0.21.0 version.

the boot log
```
Dec 08 09:24:25 ase-laptop sddm[1582]: Greeter starting...
Dec 08 09:24:25 ase-laptop sddm-helper[744438]: [PAM] Starting...
Dec 08 09:24:25 ase-laptop sddm-helper[744438]: [PAM] Authenticating...
Dec 08 09:24:25 ase-laptop sddm-helper[744438]: [PAM] returning.
Dec 08 09:24:25 ase-laptop sddm-helper[744438]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=219) by (uid=0)
Dec 08 09:24:25 ase-laptop sddm-helper[744438]: Writing cookie to "/tmp/xauth_WTrkau"
Dec 08 09:24:25 ase-laptop sddm-helper[744438]: Starting X11 session: "" "/usr/bin/sddm-greeter --socket /tmp/sddm-:0-RRbQsB"
Dec 08 09:24:25 ase-laptop sddm[1582]: Greeter session started successfully
Dec 08 09:24:25 ase-laptop sddm[1582]: Message received from greeter: Connect
Dec 08 09:24:30 ase-laptop sddm[1582]: Message received from greeter: Login
Dec 08 09:24:30 ase-laptop sddm[1582]: Reading from "/usr/share/xsessions/plasma.desktop"
Dec 08 09:24:30 ase-laptop sddm[1582]: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startplasma-x11" for VT 2
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: [PAM] Starting...
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: [PAM] Authenticating...
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: [PAM] Preparing to converse...
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: [PAM] Conversation with 1 messages
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: gkr-pam: unable to locate daemon control file
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: [PAM] returning.
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: gkr-pam: stashed password to try later in open session
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Dec 08 09:24:30 ase-laptop sddm[1582]: Authentication for user "as6" successful
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: pam_unix(sddm:session): session opened for user as6(uid=1000) by as6(uid=0)
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: Writing cookie to "/tmp/xauth_BRtllS"
Dec 08 09:24:30 ase-laptop sddm-helper[744464]: Starting X11 session: "" "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
Dec 08 09:24:30 ase-laptop sddm[1582]: Session started true
Dec 08 09:24:30 ase-laptop sddm[1582]: Auth: sddm-helper exited successfully
Dec 08 09:24:30 ase-laptop sddm[1582]: Greeter stopped. SDDM::Auth::HELPER_SUCCESS
Dec 16 21:18:03 ase-laptop sddm[1582]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Dec 16 21:18:03 ase-laptop sddm[1582]: Auth: sddm-helper (--socket /tmp/sddm-auth-430ceeef-fd17-4d0f-b8a7-69034c801322 --id 3 --start /usr/bin/startplasma-x11 --user as6) crashed (exit >
Dec 16 21:18:03 ase-laptop sddm[1582]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Dec 16 21:18:03 ase-laptop sddm[1582]: Auth: sddm-helper exited with 1
Dec 16 21:18:03 ase-laptop systemd[1]: Stopping sddm.service...
Dec 16 21:18:03 ase-laptop sddm[1582]: Signal received: SIGTERM
```

i try to use lightdm to login. then success. i change the file of '/etc/sddm.conf.d/01gentoo.conf'. add the Autologin user config, then i success login de.


i wan to find the reason why sddm crash. please help me.

pam

```
cat /etc/pam.d/sddm
#%PAM-1.0

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

account substack system-login

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

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

```
cat /etc/pam.d/sddm-autologin
#%PAM-1.0
auth required pam_env.so
auth required pam_faillock.so preauth
auth required pam_shells.so
auth required pam_nologin.so
auth required pam_permit.so
-auth optional pam_gnome_keyring.so
-auth optional pam_kwallet5.so
account include system-local-login
password include system-local-login
session include system-local-login
-session optional pam_gnome_keyring.so auto_start
-session optional pam_kwallet5.so auto_start
```

```
cat /etc/pam.d/sddm-greeter
#%PAM-1.0

# Load environment from /etc/environment and ~/.pam_environment
auth required pam_env.so

# Always let the greeter start without authentication
auth required pam_permit.so

# No action required for account management
account required pam_permit.so

# Can't change password
password required pam_deny.so

# Setup session
session required pam_unix.so
session required pam_systemd.so
```
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9680
Location: almost Mile High in the USA

PostPosted: Sat Mar 30, 2024 10:58 pm    Post subject: Reply with quote

Are you sure it's a pam issue and not that /usr/bin/startplasma-x11 crashed?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
axease
n00b
n00b


Joined: 30 Mar 2024
Posts: 3

PostPosted: Sun Mar 31, 2024 4:23 am    Post subject: Reply with quote

eccerr0r wrote:
Are you sure it's a pam issue and not that /usr/bin/startplasma-x11 crashed?


emm. i'm not sure. but this is the restart sddm log

Code:
Mar 31 12:18:44 ase-laptop sddm[55365]: Initializing...
Mar 31 12:18:44 ase-laptop sddm[55365]: Starting...
Mar 31 12:18:44 ase-laptop sddm[55365]: Logind interface found
Mar 31 12:18:44 ase-laptop sddm[55365]: Adding new display...
Mar 31 12:18:44 ase-laptop sddm[55365]: Loaded empty theme configuration
Mar 31 12:18:44 ase-laptop sddm[55365]: Xauthority path: "/run/sddm/xauth_tYrWmK"
Mar 31 12:18:44 ase-laptop sddm[55365]: Using VT 1
Mar 31 12:18:44 ase-laptop sddm[55365]: Display server starting...
Mar 31 12:18:44 ase-laptop sddm[55365]: Writing cookie to "/run/sddm/xauth_tYrWmK"
Mar 31 12:18:44 ase-laptop sddm[55365]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt1 -auth /run/sddm/xauth_tYrWmK -noreset -displayfd 16
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/ldac
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/aptx_hd
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aptx_hd
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/aptx
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aptx
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/aac
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aac
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/sbc
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/sbc
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/sbc_xq
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/sbc_xq
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/faststream
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/faststream_duplex
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/opus_05
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/opus_05
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Mar 31 12:18:44 ase-laptop bluetoothd[2178]: Endpoint unregistered: sender=:1.956 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Mar 31 12:18:45 ase-laptop sddm[55365]: Writing cookie to "/run/sddm/xauth_tYrWmK"
Mar 31 12:18:45 ase-laptop sddm[55365]: Setting default cursor
Mar 31 12:18:45 ase-laptop sddm[55365]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Mar 31 12:18:45 ase-laptop sddm[55365]: Display server started.
Mar 31 12:18:45 ase-laptop sddm[55365]: Socket server starting...
Mar 31 12:18:45 ase-laptop sddm[55365]: Socket server started.
Mar 31 12:18:45 ase-laptop sddm[55365]: Loaded empty theme configuration
Mar 31 12:18:45 ase-laptop sddm[55365]: Greeter starting...
Mar 31 12:18:45 ase-laptop sddm-helper[55395]: [PAM] Starting...
Mar 31 12:18:45 ase-laptop sddm-helper[55395]: pam_kwallet5(sddm-greeter:auth): pam_kwallet5: pam_sm_authenticate
Mar 31 12:18:45 ase-laptop sddm-helper[55395]: [PAM] Authenticating...
Mar 31 12:18:45 ase-laptop sddm-helper[55395]: pam_kwallet5(sddm-greeter:auth): pam_kwallet5: Couldn't get password (it is empty)
Mar 31 12:18:45 ase-laptop sddm-helper[55395]: [PAM] Preparing to converse...
Mar 31 12:18:45 ase-laptop sddm-helper[55395]: [PAM] Conversation with 1 messages
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9680
Location: almost Mile High in the USA

PostPosted: Sun Mar 31, 2024 2:47 pm    Post subject: Reply with quote

Can you get into X11 / plasma manually without sddm?

I don't know anything about plasma: what does /usr/bin/startplasma-x11 do?

Like in xfce4 you can run /usr/bin/startxfce4 to start xfce4 from a VT ...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
axease
n00b
n00b


Joined: 30 Mar 2024
Posts: 3

PostPosted: Mon Apr 01, 2024 1:07 am    Post subject: Reply with quote

eccerr0r wrote:
Can you get into X11 / plasma manually without sddm?

I don't know anything about plasma: what does /usr/bin/startplasma-x11 do?

Like in xfce4 you can run /usr/bin/startxfce4 to start xfce4 from a VT ...


i can get into without sddm. example lightdm

i don't know the /usr/bin/startplasma-x11 do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum