Problem with 2.2.6, xterm failing to update utmp properly

Problem with 2.2.6, xterm failing to update utmp properly

Post by Paul Civa » Wed, 20 May 1998 04:00:00



I've just installed a new 2.2.6 machine with xfree86.

What I've found is that when closing down an xterm it fails to remove
the utmp entry (at lest that's my guess), so you still get 'w' showing
open pty's:

% w
 3:32PM  up 5 days,  6:28, 21 users, load averages: 0.38, 0.29, 0.21

[...]
paul     p8  :0.0              1:02PM  2:30 -
[...]
paul     pj  :0.0             Mon01PM 26:02 -

(The current command showing as '-' demonstrates what I mean).

Running a ktrace on xterm doesn't show any problem:

  1726 xterm    CALL  open(0x26028,0x1,0xa)
  1726 xterm    NAMI  "/var/run/utmp"
  1726 xterm    RET   open 5
  1726 xterm    CALL  lseek(0x5,0,0x3a8,0,0)
  1726 xterm    RET   lseek 936/0x3a8
  1726 xterm    CALL  write(0x5,0xefbfd6d8,0x24)
  1726 xterm    GIO   fd 5 wrote 36 bytes
   "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
  1726 xterm    RET   write 36/0x24
  1726 xterm    CALL  close(0x5)

My guess is that something messed up during the installation (I went
through some headaches trying to install X via the mirror sites).

I've checked the obvious things, permissions on /var/run, on utmp itself,
and the setuid bit on the xterm binary.  Although all of these must be
correct if it's creating the entry in the first place.

Anyone have any thoughts/ideas?

Cheers,

-Paul-

 
 
 

Problem with 2.2.6, xterm failing to update utmp properly

Post by Alan McLe » Wed, 20 May 1998 04:00:00



Quote:> I've just installed a new 2.2.6 machine with xfree86.
...
> What I've found is that when closing down an xterm it fails to remove
> the utmp entry (at lest that's my guess), so you still get 'w' showing
...
> Anyone have any thoughts/ideas?

ftp://ftp.freebsd.org/pub/FreeBSD/2.2.6-RELEASE/ERRATA.TXT
ftp://ftp.freebsd.org/pub/FreeBSD/2.2.6-RELEASE/updates/xterm

jkh shouldn't have to answer all of these. ;)

-amcl

 
 
 

Problem with 2.2.6, xterm failing to update utmp properly

Post by Paul Civa » Wed, 20 May 1998 04:00:00



Quote:> > Anyone have any thoughts/ideas?

> ftp://ftp.freebsd.org/pub/FreeBSD/2.2.6-RELEASE/ERRATA.TXT
> ftp://ftp.freebsd.org/pub/FreeBSD/2.2.6-RELEASE/updates/xterm

Cheers.  I did read the errata, honest :), just must've missed it
somehow. :(  Will read more carefully next time.

Quote:> jkh shouldn't have to answer all of these. ;)

True.

-Paul-

 
 
 

1. Xterms not cleaning up utmp properly / Telnet woes

Hi,

When I log out of an xterm, it doesn't seem to clean up its entry properly
in /etc/utmp, so that when someone fingers the system, it appears as if I'm
still logged on. Does anyone know how to fix this problem? (I'm using SLS,
kernel 0.99pl4).

BTW, has anyone else noticed that telnet sessions into linux hang a lot
more in 0.99pl5 than in, say, pl4?  NCSA telnet from a PC seems to hang
pretty much at random, which is a Bad Thing(tm) if you're trying to teach
people UNIX.  Telnetting from VMS machines is even worse. Sometimes I can't
even log in before it crashes!  No problems using NCSA, though, with 0.99.4.

I'm using 2 ethernet cards, which could be the problem. A WD8013 and a
D-Link 220 (NE2000 compat) with Don Becker's drivers. As I say, fine with
0.99.4, but no luck with 0.99.5 :-(

Thanks in advance,
Nick
--
| Nick Hilliard            |                                                |



2. LAN ok, but nothing farther

3. xterms not updating utmp

4. How to turn logging on for firewall rules

5. Bourne shell question

6. xterm not updating utmp on exit

7. Can Intel+Microsoft sabotage LINUX??

8. xterm doesn't update utmp when exiting

9. ?? using sessreg and xterm +ut to update /etc/utmp

10. xterm -- not updating properly! HELP!!!

11. Xterm writing to /etc/utmp failing...