Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12767 - XDM does not write wtmp entries (patches for TakeConsole and GiveConsole)
Summary: XDM does not write wtmp entries (patches for TakeConsole and GiveConsole)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-27 00:25 UTC by Arcady Genkin (RETIRED)
Modified: 2006-04-19 23:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arcady Genkin (RETIRED) gentoo-dev 2002-12-27 00:25:21 UTC
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
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 12:32:06 UTC
Supposidly this is done in /etc/X11/gdm/PreSession/Default
and /etc/X11/gdm/PostSession/Default.
Comment 2 Arcady Genkin (RETIRED) gentoo-dev 2002-12-27 12:58:17 UTC
I use the vanilla xdm here (not gdm), and the wtmp entries are definitely not
written.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 13:07:54 UTC
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).
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 08:32:39 UTC
Ill add this post 1.4.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-03-14 01:00:35 UTC
Az seems busy. =)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 04:24:57 UTC
Is this still even remotely relevant after 2 1/2 years?!
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-31 19:13:43 UTC
Yes, it remains relevant.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-19 23:35:14 UTC
Fixed (finally) in xdm-1.0.3-r1, thanks!