[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w reporting incorrect idle times



In message <20010702232807.21597.qmail@ssr.com>
	so spake Scott Ballantyne (sdb):

> I'd report this as a bug, but I'm not sure that it is. Since
> upgrading from 2.6-2.9, the 'w' command reports weird idle times for
> users, generally 0, no matter how long the terminal has been inactive,
> but sometimes other things as well. I'm wondering if something has
> changed in the utmp structure?

Yes, struct utmp changed.  You'll want to move/zero the following:
    /var/log/wtmp
    /var/log/lastlog
    /var/log/failedlogin

 - todd