You are not logged in.
Hi All,
I've been experimenting with xdm recently and I've found that sessreg does not seem to be configured properly. When I login using xdm, no user sessions are recorded, using "w" or "last" reports that no one is logged in, even though I am logged in! If I revert to slim, it works fine, logins and logouts are recorded properly.
I've tried swapping the sessreg commands in /etc/X11/xdm/Xstartup and /etc/X11/xdm/Xreset with those in /etc/slim.conf, but it hasn't helped.
Does anyone else have this problem? Or a solution?
Thanks,
Rob
Offline
This is old news.
there is 2 solutions :
1-st (untested)
add in /etc/pam.d/xdm
session optional pam_lastlog.so
2-nd use alternatives like gdm,lightdm,lxdm and so on
O' rly ? Ya rly Oo
Offline
Unfortunately, lightdm appears to suffer from the same problem as xdm, no user sessions recorded. I'll experiment with the copious options it provides, and print the solution here if I can find it.
Offline
i can assure you that it works in lxdm,
> cat /etc/pam.d/lxdm
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so
auth required pam_unix.so
account required pam_unix.so
session required pam_limits.so
session required pam_unix.so
password required pam_unix.so
session optional pam_lastlog.so
session optional pam_loginuid.so
-session optional pam_ck_connector.so nox11
cybertorture@freeman ~
> who
cybertorture pts/0 2011-11-29 00:57 (:0.0)
cybertorture@freeman ~
> lastlog
Username Port From Latest
root tty1 чт ное 24 16:45:11 +0200 2011
cybertorture tty3 вт ное 29 00:19:41 +0200 2011
Last edited by cybertorture (2011-11-28 23:21:56)
O' rly ? Ya rly Oo
Offline
Yes it does! Thanks very much.
Offline
No worries
O' rly ? Ya rly Oo
Offline