Cleaning up utmp, who, and accounting problems

The best way to fix this problem is to fix the programs which are
causing the behavior in the first place. The short answer is to call
software support and ask for the “UTMPFIX” collection of PTFs.

Virtually all of these problems should be fixed in the 3251 PMP and
the only one I’ve been able to prove is still broken is using ALT-F4
to close an aixterm.

This applies if you are running an X11R5 xterm on 3.2.
Add this to the top of X11R5 mit/clients/xterm/main.c:

#ifdef AIXV3
#define USE_SYSV_UTMP
#define HAS_UTMP_UT_HOST
#define WTMP_FILENAME “/var/adm/wtmp”
#endif

And your utmp problems should go away. If you want xterminal sessions
to go into the wtmp file you need to define -DWTMP in the Imakefile and
be sure the WTMP_FILENAME is set to the right place.

Section 8.02 contains a small C program that you can use until the
PTFs arrive. The program must be run as root and will periodically
clean up old entries.

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top