rxvt and utmp

rxvt and utmp

Post by Hact » Thu, 25 Oct 2001 01:36:19



I don't know whether this is a shell question, but it might have to do
with suid-ness, which is vaguely related.

Given this situation:


Linux pc 2.4.7 #1 SMP Sun Jul 22 23:06:18 EDT 2001 i686 unknown

---s--x--x   1 root     nobody      66416 Mar  6  2000 /export/X11/bin/i686/rxvt
-rws--x--x   1 root     wheel      252315 Dec 19  2000 /usr/X11R6/bin/xterm

/dev/hdg8 on /export type ext2 (rw,nodev)
# I also have /export/media/mp3 mounted, and did not want that to show up

lrwxrwxrwx   1 root     root           13 Jun  1 15:19 /etc/utmp -> /var/run/utmp
-rw-rw-r--   1 root     utmp         7296 Oct 23 12:25 /var/run/utmp

rxvt: bad option "-V"

Usage v2.4.5 : (.Xdefaults)
[...]

rxvt does not write an entry in utmp when I open a new window.  xterm
does.  What can I change, to make rxvt do so?  It doesn't work for either
root or eben, which makes me think it's not suid-ness.

Should I ask in another newsgroup?  Which one?  Thanks.

--

        Hanlon's Razor: "Never attribute to malice that which can be
      adequately explained by stupidity."  Derived from Robert Heinlein

 
 
 

1. utmp entry with rxvt?

Check feature.h in the src/ directory.  Mine has:

#define UTMP_SUPPORT
#ifdef UTMP_SUPPORT
# ifndef UTMP_FILENAME
#  define UTMP_FILENAME "/var/adm/utmp"
# endif
# ifndef TTYTAB_FILENAME
#  define TTYTAB_FILENAME "/etc/ttys"
# endif
#endif

and make sure that rxvt is owned by root user and root group.  i.e.:

This is what I did after compiling and copying to /usr/local/bin:

chown root.root rxvt
chmod a+s rxvt

Cheers,

-- Marc

2. kam and wtmp

3. rxvt 2.16/2.18b2 no utmp?

4. New Server

5. 1.1.64, rxvt and utmp blues

6. is someone know good GATED information bases

7. Is rxvt 1.93 /etc/utmp support broken under Linux?

8. Intro to Embedded Linux Programming talk slides online

9. rxvt-2.18 utmp problems

10. rxvt and utmp

11. Matrox Mystique ands X.

12. utmp: finding binaries that corrupt utmp

13. location of utmp wtmp in utmp.h