When I use rxvt-unicode (urxvt) as terminal emulator, I receive no output for the who or users. It seems that urxvt fails to update utmp correctly. Here's a dump of utmp with xterm and urxvt: with xterm: [7] [18481] [ts/8] [felicitus] [pts/8 ] [:0.0 ] [0.0.0.0 ] [Tue Aug 24 22:19:20 2010 ] with urxvt: [8] [15768] [ts/1] [felicitus] [pts/1 ] [ ] [0.0.0.0 ] [Tue Aug 24 20:09:30 2010 ] The only difference is that the host field isn't filled, so it seems that urxvt has utmp access, but fails to set the host. Reproducible: Always
I can reproduce that here. /var/run/utmp is perhaps not writeable. I wonder how xterm does that.
*** This bug has been marked as a duplicate of bug 88593 ***
Sorry have to reopen this issue. I'm not sure about utmp, but urxvt actually adds an entry to utmp here - just with the missing :0.0 entry. I have seen urxvt on other systems like debian, where the "users" command did output the correct user, but unfortunately I couldn't have a look at the utmp there. For xterm, they are using libutempter or similar to write to utmp. I will setup a debian or ubuntu system soon to see if utmp has similar permissions there. Again, I can say for sure that urxvt adds an entry to utmp, but it's missing the :0.0 address when doing the dump.
ah ok
sys-libs/libutempter is what xterm uses.
Presumably fixed some time within the last 10 years, looks OK to me now.