Trim wtmp and utmp files

From: Liang, Warren <warren.liang_at_marconi.com>
Date: Thu, 20 Dec 2001 18:25:45 -0500

Hello:

Files /var/adm/wtmp and utmp are getting bigger. I trimmed both of them by
using the following commands:
# cp /var/adm/wtmp /var/adm/wtmp_Nov2001
# cp /dev/null /var/adm/wtmp

Then, commands 'who -b' and 'who -r' do not display anything anymore. Since
command who accesses wtmp and utmp files, I assume the trimming process must
have something to do with the 'who -b'. If it is the reason, what is the
correct method to maintain both files in a suitable size and also make 'who
-b; who -r' display the proper information?

Thanks in advance.

O/S: DEC Tur64 V5.0

Warren
Received on Thu Dec 20 2001 - 23:32:24 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT