/var/run/utmp is not reliable
1. who reports I :0 Feb 11 21:57 (console) I pts/0 Feb 11 21:57 A pts/2 Feb 13 19:14 B pts/3 Feb 12 14:09 although neither A nor B are logged in. Instead, w reports correctly that I am logged in at :0 and pts/0. 2. I have the same problem with talk. When I open an aterm connected to e.g. pts/2, and writes "talk I", the talk daemon reports user A is trying to connect. Both who and talk seems to depend on an unreliable utmp. 3. The aterm does not add an entry to utmp, as xterm do. 4. I have one entry in utmp since the last reboot that says B pts/3 Thu Feb 12 14:09 gone - no logout What could have happened? This explains why "talk I" from pts/3 reports the B user. And the last entry on pts/2 is A's. 5. utmp(5) says "...which causes native v7/BSD- like programs to display (for example) dead or login entries". Is who and talk BSD- like programs? Why not make them Linux- like? Håkon Hallingstad, www.pvv.org/~hakonhal
participants (1)
-
Håkon Hallingstad