[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system/1857: XF4 xdm logins are not recorded in wtmp




>Number:         1857
>Category:       system
>Synopsis:       XF4 xdm logins are not recorded in wtmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun  8 00:20:02 MDT 2001
>Last-Modified:
>Originator:     
>Organization:
net
>Release:        2.9-current
>Environment:
	System      : OpenBSD 2.9
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
	logins through XF4's xdm are not recorded in /var/log/wtmp like they
	were with XF3.  adding tweaked sessreg commands from XF3 to XF4's 
	Give/TakeConsole scripts works for me.  logging to utmp will still 
	give you a bunch of strange accesses to /dev/:0, but i used -u none
	instead.
>How-To-Repeat:
	login via xdm and check last.
>Fix:

Index: xc/programs/xdm/config/GiveConsole
===================================================================
RCS file: /cvs/XF4/xc/programs/xdm/config/GiveConsole,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 GiveConsole
--- xc/programs/xdm/config/GiveConsole	2001/02/15 07:58:06	1.1.1.1
+++ xc/programs/xdm/config/GiveConsole	2001/06/08 05:07:19
@@ -8,3 +8,4 @@
 # causing serious grief.
 #
 chown $USER /dev/console
+/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none -x /usr/X11R6/lib/X11/xdm/Xservers $USER
Index: xc/programs/xdm/config/TakeConsole
===================================================================
RCS file: /cvs/XF4/xc/programs/xdm/config/TakeConsole,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 TakeConsole
--- xc/programs/xdm/config/TakeConsole	2001/02/15 07:58:06	1.1.1.1
+++ xc/programs/xdm/config/TakeConsole	2001/06/08 05:07:19
@@ -5,3 +5,4 @@
 #
 chmod 622 /dev/console
 chown root /dev/console
+/usr/X11R6/bin/sessreg -d -l $DISPLAY -u none -x /usr/X11R6/lib/X11/xdm/Xservers $USER

>Audit-Trail:
>Unformatted: