Gentoo's XDM does not create wtmp or utmp entries for X console logins. The below patches to /etc/X11/xdm/GiveConsole and /etc/X11/xdm/TakeConsole fix this. --- /tmp/GiveConsole 2002-12-27 00:39:32.000000000 -0500 +++ GiveConsole 2002-12-27 00:38:44.000000000 -0500 @@ -8,3 +8,5 @@ # causing serious grief. # chown $USER /dev/console +/usr/X11R6/bin/sessreg -a -w "/var/log/wtmp" -u "/var/run/utmp" \ + -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER --- /tmp/TakeConsole 2002-12-27 00:39:32.000000000 -0500 +++ TakeConsole 2002-12-27 00:37:47.000000000 -0500 @@ -5,3 +5,5 @@ # chmod 622 /dev/console chown root /dev/console +/usr/X11R6/bin/sessreg -d -w "/var/log/wtmp" -u "/var/run/utmp" \ + -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
Supposidly this is done in /etc/X11/gdm/PreSession/Default and /etc/X11/gdm/PostSession/Default.
I use the vanilla xdm here (not gdm), and the wtmp entries are definitely not written.
Err, yes, sorry .. long night :/ Ill have a look. Seems that for 4.2.99 and later at least they started adding support for utemper, so for that it should be fine if/when we get utemper in portage (if not already).
Ill add this post 1.4.
Az seems busy. =)
Is this still even remotely relevant after 2 1/2 years?!
Yes, it remains relevant.
Fixed (finally) in xdm-1.0.3-r1, thanks!