utmp/wtmp info is not showing
Posted on 2000-02-14
I had to reset utmp/wtmp due to a break-in. I copied /dev/null over these
files and rebooted. The files seem to now be updated properly because
"strings /var/run/utmp" shows correct logins. However,
finger/who/w do NOT show any users at all!
I then made a little C program to call getlogin(), and found that
getlogin() returns a NULL pointer.
I've tried different variants of erasing/resetting utmp/wtmp. Is there any
way to get finger/who/w/getlogin() working again without reinstall?
This is with Red Hat Linux 5.1/Intel Pentium.