On Friday 30 July 2004 15:10, Tom wrote: > * [Friday 30 July 2004 15:34] Adam Funk: > >> For a few weeks now I've been finding logins listed in the `who` >> output that are not really logged in. I've found out how to clear >> them (`cat /dev/null>/var/run/utmp`) but I'd like to cure the >> problem. The false entries all seem to refer to xterm sessions >> (running bash but without the -l option), but only a few xterm >> sessions fail to get registered as logged out. > > Pretty useless reply, but I've noticed the same thing. It's been like > that for several months here, now.
I've noticed something interesting. `who` is still playing up but `w` reports the correct information, although they both get info from /var/run/utmp, because clearing that clears both commands' output. /home/adam $ who adam :0 Aug 5 08:16 adam pts/1 Aug 5 08:43 (:0.0) adam pts/1 Aug 4 08:30 (:0) adam pts/0 Jul 30 18:58 (:0) adam pts/2 Aug 3 14:34 (porthos.co.umist.ac.uk) adam pts/3 Aug 2 14:02 (:0) /home/adam $ w 09:01:39 up 9 days, 13:47, 6 users, load average: 2.84, 1.75, 1.46 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT adam :0 - 08:16 ?xdm? 5days 0.79s /usr/bin/xfce4-session adam pts/1 :0.0 08:43 0.00s 0.10s 0.02s w /home/adam $ su Password: /home/adam # cat /dev/null >/var/run/utmp /home/adam # exit /home/adam $ who /home/adam $ w 09:08:33 up 9 days, 13:54, 0 users, load average: 1.88, 1.70, 1.51 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]