You are not logged in.
I noticed that URxvt cannot write to utmp and as a result the commands users and w don't output the currently logged in user at this terminal.
Apparently, chmod g+s /usr/bin/urxvt solves the problem, but i wonder why isn't this already configured somehow?
All vte based terminal emulators can write to utmp properly. This applies to slim too, that also can't write to utmp.
Offline
[karol@black ~]$ w
03:54:57 up 16:38, 1 user, load average: 0,04, 0,05, 0,05
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
karol tty1 Mon11 10:45m 15.43s 0.01s /bin/sh /usr/bin/startx
[karol@black ~]$ who
karol tty1 2011-08-15 11:19
[karol@black ~]$ users
karol
Works in my urxvt.
How do you log in? https://wiki.archlinux.org/index.php/St … .2Finittab (the 'Warning' part)
Last edited by karol (2011-08-16 01:59:18)
Offline
Offline
Works in my urxvt.
Maybe its the user from your initial login (startx) displayed. If u do a su - in a terminal it displays then Karol root ?
How do you log in? https://wiki.archlinux.org/index.php/St … .2Finittab (the 'Warning' part)
I am not using the inittab method. I use the daemon method with slim.
And permissions on /var/run/utmp are...
[droidlock@homelinux ~]$ ls -al /var/run/utmp
-rw-rw-r-- 1 root utmp 2688 Aug 16 05:25 /var/run/utmp
Perhaps you've neglected to merge a group.pacnew recently and the utmp group doesn't exist.
I don't have any .pacnew files in my system, i take care of them asap. I did an updatedb && locate .pacnew though...
Offline
I got it from the [extra] repository (rxvt-unicode 9.12-1). I installed the xfce Terminal (vte based) and it displays logged in users correctly.
I also saw that urxvt is compiled with --enable-utmp support and i added "URxvt*utmpInhibit: true" to my .Xresources but no luck.
Offline
I am displayed as root only if I log in (init 3) as root - using su shows only karol.
Offline
I am displayed as root only if I log in (init 3) as root - using su shows only karol.
That is not happening in other terminal emulators, it should display all users currently logged in, according to utmp.
Offline
I got it from the [extra] repository (rxvt-unicode 9.12-1). I installed the xfce Terminal (vte based) and it displays logged in users correctly.
I also saw that urxvt is compiled with --enable-utmp support and i added "URxvt*utmpInhibit: true" to my .Xresources but no luck.
You've got that option backwards, it should be false to ensure that urxvt writes to utmp... but it shouldn't be needed.
Offline
Should i make a Bug report for that issue?
Offline
Offline
For what it's worth, I am also seeing the same behavior as nasosnik. I never noticed before because I never run w, who, or users. I also use slim to log in, so I suspect it is a configuration issue there.
Offline