This information is logged in /etc/utmp and /etc/utmpx. In 5.0.4, this information is cleared when the system reboots. For earlier releases, edit /etc/bcheckrc as follows. You will see the first of the following three lines already there; add the other two below it.
/bin/su bin -c "/etc/devnm / 2>/dev/null" | /etc/setmnt [ -w /etc/utmp ] && > /etc/utmp [ -w /etc/utmpx ] && > /etc/utmpx
Also, "cwtmp" ftp://ftp.armory.com/pub/scobins/cwtmp is a freely available utility that clears stale logins.
Also available for Linux: ftp://ftp.armory.com/pub/linux/cwtmp
Got something to add? Send me email.
The danger of computers becoming like humans is not as great as the danger of humans becoming like computers. (Konrad Zuse)
Printer Friendly Version
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.
Contact us
Printer Friendly Version