xterm doesn't update utmp when exiting

xterm doesn't update utmp when exiting

Post by Eric M. Bo » Fri, 19 Jan 1996 04:00:00



--
Ok, I've been chasing this problem for a while now...

I recently upgraded libc's, ld.so's gcc, etc.
When I did this I ran into problems with utmp not being updated when
someone logged out.  I read the libc.so.5.2.18 release notes, and
changed my system so that there was only /var/run/utmp and /var/log/wtmp as
real files, and that /etc/utmp, /var/adm/utmp pointed to /var/run/utmp and
/etc/wtmp and /var/adm/wtmp pointed to /var/log/wtmp.

Here's the current situation:
        If a user logs in remotely, utmp gets cleaned up properly when they exit.
        If a user uses rxvt (instead of xterm) utmp gets cleaned up properly
           when they exit.

        But, if a user uses xterm...utmp gets updated to add the new tty, but
           the new tty doesn't get deleted when they log out.

If anyone can explain this behaviour, I'm all ears.

Recently upgraded libs:
ld.so.1.7.14 (was slackware 3.0 default...maybe ld.so.1.7.3?)
libc.so.5.2.18 (was 5.0.9)
libg++-2.7.1.3
binutils-2.6.0.2
gcc-2.7.2
XFree86-3.1.2

utmp and wtmp files:
/etc/utmp -> /var/run/utmp
/var/adm/utmp -> /var/run/utmp
/var/run/utmp
/etc/wtmp -> /var/log/wtmp
/var/adm/wtmp -> /var/log/wtmp
/var/log/wtmp

----------
Eric Boyd
407 Memorial Dr
Cambridge Ma, 02139
617-494-6573


"It's easier to ask for forgiveness than for permission"
------------------------------------------------------------------------------
"640K ought to be enough for anybody." (Bill Gates, 1981)

 
 
 

1. xterm not updating utmp on exit

Hello,

        my xterm/color_xterm are SUID root.  When I leave X and run
`finger` or `who` or aything, I still see a crap-load of people "logged
in" on ttyp ports.  They're not there, of course.  What's causing this,
and how can I fix it?  Thanks,

BTW, here is the ls -la output...
-rwsr-xr-x   1 root     bin        145276 Jun 11  1995 /usr/X11/bin/color_xterm*
-rwsr-xr-x   1 root     root       134412 Jul 23  1995 /usr/X11/bin/xterm*


Kickin' it since 1.1.59  http://www.ecst.csuchico.edu/~bryanxms
/* Do not distribute this message across the Microsoft(tm) Network */

2. Network backup from WindowsXP to Ultra w/4mm tape

3. xterm doesn't add utmp entries in 2.5

4. Help

5. How come dhclient doesn't update exiting default gateway entry...?

6. SCSI disk errors, and repairing them.

7. exit doesn't exit?

8. Port in use TLI version

9. in.ttysnoopd not updating utmp on exit ?

10. xterms not updating utmp

11. Problem with 2.2.6, xterm failing to update utmp properly

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