'sessreg' ========= This is a quick port of 'sessreg', the session registration program used by 'xdm' to write login-entries to the /etc/wtmp and /etc/utmp files. The version included with Xfree-1.2 is broken, and fails with an 'lseek' error. The binary included is compiled with gcc-2.3.3 with the 4.3.2 sharable libraries. 'sessreg' should be copied to /usr/bin/X11, and called from the 'xdm' startup and reset files. These files are defined in /usr/lib/X11/xdm/xdm-config as the parameters DisplayManager._0.startup: /usr/lib/X11/xdm/ DisplayManager._0.reset: /usr/lib/X11/xdm/ In the standard SLS distribution, these files are called GiveConsole and TakeConsole, respectively. Please note that these files are sourced as user 'root', so be careful what goes into them. Note also that 'sessreg' should *not* be installed setuid root. To add a utmp/wtmp entry, 'sessreg' should be called from DisplayManager._0.startup as follows: sessreg -a -l console $USER To delete the entry in DisplayManager._0.reset, use sessreg -d -l console $USER For more info, see the man pages included. Nick -- | Nick Hilliard | e-mail: nick@symphony.mp.ucc.ie | | Systems Administrator | Internet: nick@curia.ucc.ie | | Mathematical Physics Dept. | Bitnet: armt6003@iruccvax | | UCC, Cork, Ireland. | Disclaimer: Opinions - they're mine, all mine! |