rxvt 2.16/2.18b2 no utmp?

rxvt 2.16/2.18b2 no utmp?

Post by Mark Levi » Thu, 11 Jul 1996 04:00:00



Hi.  I'm having a problem with "w" "who" and rxvt.  If I fire up xterm as a
login shell, the login shows up in w who and finger.  However, if I run rxvt
as a login shell, it doesn't report the login with w who and finger.

  Now, i've gotten and compiled rxvt-2.16 and 2.18b2.  I have made sure that
I set USE_UTMP in the compile options.  I have chowned it root.bin and
chmoded it u+s.  However, it still doesn't work.
  I also tried chowning it root.root.  That didn't work either.

  v2.16 makes you pick SYSV style utmp or BSD style utmp.  I've tried it
both ways.  

  Also, looking at the strace output it seems like it's opening and writting
to utmp, but it's not showing up.  

 I'm using kernel 2.0.3, libc 5.0.9. Gcc 2.7.0.

HELP!  Thanks.

--
____________________________________________________________________

                    Mark E. Levitt
    Department of Speech Communication, Syracuse University

         Home Page:  http://web.syr.edu/~melevitt

PGP fingerprint =  B8 A3 AA A6 0F 83 9A BE  F2 7A 19 F9 15 79 FE A4
Public key available from http://web.syr.edu/~melevitt/pgpkey.html
____________________________________________________________________

 
 
 

rxvt 2.16/2.18b2 no utmp?

Post by Anttinen Roo » Fri, 12 Jul 1996 04:00:00



> Hi.  I'm having a problem with "w" "who" and rxvt.  If I fire up xterm as a
> login shell, the login shows up in w who and finger.  However, if I run rxvt
> as a login shell, it doesn't report the login with w who and finger.
>   Now, i've gotten and compiled rxvt-2.16 and 2.18b2.  I have made sure that
> I set USE_UTMP in the compile options.  I have chowned it root.bin and
> chmoded it u+s.  However, it still doesn't work.
>   I also tried chowning it root.root.  That didn't work either.
>   v2.16 makes you pick SYSV style utmp or BSD style utmp.  I've tried it
> both ways.  
>   Also, looking at the strace output it seems like it's opening and writting
> to utmp, but it's not showing up.  

Same problem... weird thing is that when executing rxvt as root, it works as
supposed but as user - nop. How this is possible? rxvt is suid root.

Quote:>  I'm using kernel 2.0.3, libc 5.0.9. Gcc 2.7.0.

2.0.1 libc 5.latest, gcc 2.7.2

> HELP!  Thanks.

> --
> ____________________________________________________________________
>                     Mark E. Levitt
>     Department of Speech Communication, Syracuse University

>          Home Page:  http://web.syr.edu/~melevitt
> PGP fingerprint =  B8 A3 AA A6 0F 83 9A BE  F2 7A 19 F9 15 79 FE A4
> Public key available from http://web.syr.edu/~melevitt/pgpkey.html
> ____________________________________________________________________

--

___________________________________________________________________________

      p u h : 9 0   8 1 2   7 5 6 7  /  9 4 9   4 4 5   5 6 5
      a t k i . h e l b p . f i : 8 0 8 0 / ~ a n t t i n e r
---------------------------------------------------------------------------
Helsinki Business Polytechnic - Institute of information technology

 
 
 

rxvt 2.16/2.18b2 no utmp?

Post by Petri Kaukasoi » Sun, 14 Jul 1996 04:00:00


Quote:>  Now, i've gotten and compiled rxvt-2.16 and 2.18b2.  I have made sure that
>I set USE_UTMP in the compile options.  I have chowned it root.bin and
>chmoded it u+s.  However, it still doesn't work.
>  I also tried chowning it root.root.  That didn't work either.
>  v2.16 makes you pick SYSV style utmp or BSD style utmp.  I've tried it
>both ways.  

2.16 works for me. I have it both setuid root and setgid root, like
instructed in src/feature.h line 266-267:

---s--s--x   1 root     root        40148 Apr 24 08:11 /usr/X11/bin/rxvt

And here are my definitions about utmp and wtmp:

--- src/feature.h.orig  Tue Apr  2 20:00:00 1996

  *     for BSD-type systems, to define where the tty table is located
  *     if it isn't /etc/ttytab
  *----------------------------------------------------------------------*/
-/* #define UTMP_SUPPORT */
+#define UTMP_SUPPORT
 #ifdef UTMP_SUPPORT
-/* #define USE_SYSV_UTMP */
+#define USE_SYSV_UTMP
 /* #define USE_BSD_UTMP */
 #ifndef UTMP_FILENAME
-/* #  define UTMP_FILENAME     "/var/adm/utmp" */
+#define UTMP_FILENAME  "/var/run/utmp"
 /* #  define UTMP_FILENAME     "/var/adm/utmp" */
 #endif
 #ifndef TTYTAB_FILENAME
--- src/utmp.c.orig     Tue Apr  2 20:00:00 1996

 /* WTMP_SUPPORT added pwp 95-12-07 */
 #ifdef UTMP_SUPPORT
-# define WTMP_SUPPORT
+/* # define WTMP_SUPPORT */
 # include <errno.h>
 # ifdef HAVE_FCNTL_H
 #  include <fcntl.h>

 
 
 

1. Compiling rxvt 2.16

I've just downloaded rxvt 2.16 from sunsite as I want to have proper
utmp support. However, I'm finding it impossible to compile as it
doesnt appear to be looking in /usr/include/linux (I thought this
was supposed to be handled automatically?) rxvt 2.08 compiled ok but
seems to have a bug in the colour handling routine (The colours dont
return to the default), leaving the command line annoyingly a different
colour after each ls.

The main annoying thing is that software that simply wont compile on
Linux is being uploaded to sunsite. I've had problems with other
packages where I've had to go in and have more of a dig around than should
be necessary. Why is this happening? It's most unproffesional, how's
it going to look if says "Can I get "x" working on Linux" and you download
it, go to compile and get a screenful of error messages? If we're going
to have this, can we have a directory called "NeedsPorting" or something
where offending programs can be stashed until they're fixed to run
properly?

Anyway, if anyone has managed to compile this version of rxvt for linux,
please give me a shout. For info, I am running slackware 3.0

Rich

2. How do you use INSERT with form variable

3. libc-5.2.16 makes emacs coredump in XLoadFont()

4. Bogus Bogomips on a 486DX4/120

5. screen (and k2.2.16)

6. My Afternoon at CompUSA

7. Slackware 7.1, Linux2.2.16, AC_97 Codec

8. xcin problem

9. Crystal audio (AC_97.o) on SMP, linux02.2.16

10. How to compile libc-5.2.16

11. sound support in linux-2.2.16

12. libc-5.2.16 getwd(), was 1.2.x + ELF + kswap pitfalls

13. libc-5.2.16 *** Kernel *** Make