Subject: Re: better w(1)
To: None <current-users@netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: current-users
Date: 06/21/1999 14:51:06
> But if xterm sessions don't create utmp and wtmp entries, then you've no
> record that the user had a session on the machine (apart from process
> accounting).
If folks are using xdm to run xterms then it is possible to get xdm to
put entries in wtmp/utmp. The entries use X display's name (eg. X:0)
where one would normally find the pty entry. The stock compilation
flags don't turn on this feature for netbsd. Most likely this is
because a small number of programs (like wall(1)) get confused when
they naively try to open /dev/X:0 and can't.
Perhaps wall can be hacked to special-case X displays and the xdm
compile-time define can be turned on for netbsd?
That will give the best of both worlds by adding an entry for X users
without adding an entry for every xterm they are running.
-wolfgang
--
Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
http://www.wsrcc.com/wolfgang/
DGPS signals via the Internet http://www.wsrcc.com/wolfgang/gps/dgps-ip.html