SUMMARY: Lagging Logins

From: Andrew Lamb (
Date: Fri Dec 13 1996 - 14:23:54 CST

Original Problem:

        "last" shows users as "still logged in" long after they have logged off.

        John McAvoy <>
        Bob Woodward <>
        Karl E. Vogel <>

Explanation & Solution:

        Some Suns don't clear logins until the next time someone logs
in at that terminal. It occurs when people don't log out before they
disconnect. Sun introduced the "utmpd" daemon on Solaris to correct the
problem, but their original version had bugs and sometimes made things
worse. The current version seems to work quite well as long as the defaults
are set properly in /etc/default/utmpd:

        MAX_FDS = 0

These values come from

and they worked for my machine, a Solaris 2.4 Sun Sparc Classic,
but another suggested set of values was SCAN_PERIOD=30 and MAX_FDS=3 .
These values didn't work for my machine. There's also a public version
of utmpd that's quite stable. I haven't been able to find this for
Solaris 2.4 yet, though I found one for Solaris x86 at .

The web page at

suggests the patch "102286-01 SunOS 5.4: /usr/lib/utmpd fix"
however this patch is no longer publically available at
where I shop. I tried to find what patch had replaced it by doing "grep
102286 *" in a directory containing the .readme files for all Solaris
2.4 recommended and security patches but it wasn't mentioned in any of them.

I'm very grateful to Sun Managers for getting my "last" command working
again. It would have taken me weeks without your advice.

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:18 CDT