You are not logged in.

#1 2011-08-16 01:32:34

nasosnik
Member
From: Athens - Greece
Registered: 2011-03-10
Posts: 27

URxvt cannot write to utmp

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

#2 2011-08-16 01:57:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: URxvt cannot write to utmp

[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

#3 2011-08-16 02:39:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: URxvt cannot write to utmp

And permissions on /var/run/utmp are...

this is supposed to be taken care of by initscripts on bootup. Perhaps you've neglected to merge a group.pacnew recently and the utmp group doesn't exist.

Last edited by falconindy (2011-08-16 02:40:49)

Offline

#4 2011-08-16 03:03:10

nasosnik
Member
From: Athens - Greece
Registered: 2011-03-10
Posts: 27

Re: URxvt cannot write to utmp

karol wrote:

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 ?

karol wrote:

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.

falconindy wrote:

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
falconindy wrote:

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

#5 2011-08-16 03:10:46

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: URxvt cannot write to utmp

Where exactly did you get this rxvt package from?

Offline

#6 2011-08-16 03:20:34

nasosnik
Member
From: Athens - Greece
Registered: 2011-03-10
Posts: 27

Re: URxvt cannot write to utmp

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

#7 2011-08-16 03:21:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: URxvt cannot write to utmp

I am displayed as root only if I log in (init 3) as root - using su shows only karol.

Offline

#8 2011-08-16 03:35:28

nasosnik
Member
From: Athens - Greece
Registered: 2011-03-10
Posts: 27

Re: URxvt cannot write to utmp

karol wrote:

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

#9 2011-08-16 03:35:31

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: URxvt cannot write to utmp

nasosnik wrote:

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

#10 2011-08-16 18:34:44

nasosnik
Member
From: Athens - Greece
Registered: 2011-03-10
Posts: 27

Re: URxvt cannot write to utmp

Should i make a Bug report for that issue?

Offline

#11 2011-08-16 20:53:32

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: URxvt cannot write to utmp

Given that this clearly isn't a packaging issue and there's a whole lot of "works for me" going around, i'd say there won't be much gained from opening a bug report.

Offline

#12 2011-08-18 00:05:42

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: URxvt cannot write to utmp

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

Board footer

Powered by FluxBB