|
radwtmp and the last command
I just upgraded my Redhat box from a very old and sturdy box that was running an old version of slackware. I am using cistron/freeradius and it is working great. The move went well, everything is working, but when I go to search the radwtmp logs on the new server, it can not read the old logs. They are readable on the old server just fine. New logs are readable as they are created by the new server. The script I have been using for years (read about 10 years) is:
( exec last -f /var/log/radwtmp -y $* | more)
I had to change it to:
( exec last -f /var/log/radwtmp $* | more)
For the new version of last to read it at all. The orginal version of last seems to be from (gasp) 1992.
Any suggestions on how to convert the old radwtmp logs (I rotate them each month, rename them, update the script file) so I can continue to see users log in history?
|