You are not logged in.

#1 2013-03-22 14:24:23

Kalsofar
Member
Registered: 2013-03-21
Posts: 1

Logout Issues with SLiM and PAM + Possible Fix

Hi everyone.

After about using Archbang for about two weeks I ran into a odd problem :
If I login and logout the first time, everything is fine. However, if I login and logout the second time, the system hangs during logout. I have to send a SIGHUP to X.org and restart the SLiM service.

After trying to isolate the problem for a few days I found that there seems to be an issue with /etc/pam.d/slim:

#%PAM-1.0

auth        include     system-local-login
-auth       optional    pam_gnome_keyring.so
account     include     system-local-login
session     include     system-local-login
-session    optional    pam_gnome_keyring.so auto_start

This file includes another file called system-local-login which includes system-login:

#%PAM-1.0

auth       required   pam_tally.so         onerr=succeed file=/var/log/faillog
auth       required   pam_shells.so
auth       requisite  pam_nologin.so
auth       include    system-auth

account    required   pam_access.so
account    required   pam_nologin.so
account    include    system-auth

password   include    system-auth

session    optional   pam_loginuid.so
session    required   pam_env.so
session    include    system-auth
session    optional   pam_motd.so          motd=/etc/motd
session    optional   pam_mail.so          dir=/var/spool/mail standard quiet
-session   optional   pam_systemd.so

For reasons I do not yet understand, commenting out the last line containing pam_systemd.so fixed the problem for me.

I'm posting this in case anyone else had a similar problem. If anyone might know why pam_systemd.so would cause such an issue, that would be great. Otherwise, I'll keep the line commented out.

Thanks.

Offline

#2 2013-03-22 14:40:04

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Logout Issues with SLiM and PAM + Possible Fix

Thanks for sharing!


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#3 2013-03-31 03:53:56

CarlD
Member
From: London
Registered: 2013-01-22
Posts: 80

Re: Logout Issues with SLiM and PAM + Possible Fix

Another way to fix it is just to add the following line to the /etc/pam.d/slim file:

 session required pam_systemd.so

So it looks thus:

#%PAM-1.0

auth include system-local-login
-auth optional pam_gnome_keyring.so
account include system-local-login
session include system-local-login
session required pam_systemd.so
-session optional pam_gnome_keyring.so auto_start

Here's my bug-tracker report: https://bugs.archlinux.org/task/34329

Offline

#4 2013-03-31 04:45:54

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Logout Issues with SLiM and PAM + Possible Fix

Noticed this problem only recently. making topic Sticky


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB