Overflowing wtmp

Bob Daniel rad at genco.bungi.com
Thu Jan 24 06:08:42 AEST 1991


In article <92 at tdatirv.UUCP> sarima at tdatirv.UUCP (Stanley Friesen) writes:
>
>I have found that my wtmp file tends to grow without bound.
>This is annoying.  Is there any clean way to trim it, short of the rather
>crude 'cat /dev/null > /etc/wtmp' approach.  (I *do* know about cron,
>I just need to know what to put in it).

First of all, you only need to use '>/etc/wtmp' to clear out the file.  To
install it in cron, make this entry in /usr/spool/cron/crontabs/root...

0 2 * * 0 >/etc/wtmp

Restart the cron or just reboot the system.  This will clear the file at
2 AM every Sunday.



More information about the Comp.unix.admin mailing list