Auth.log date issue?

David Fleck david.fleck at mchsi.com
Wed Mar 9 06:24:29 PST 2005


On Wed, 9 Mar 2005, Mark wrote:
> Which is curious, as the IP address no longer has a machine on it. Then I
> checked, and after a while I suddenly noticed /var/log/auth.log was dated
> March 8, 2004! Apparently, the security script just checks the date, but
> not the year? Is it supposed to work this way? It gave me a good scare,
> all for nothing. :)


The exact same thing happened to me a few months ago.  I think the script 
is written with the assumption that the auth.log will be rotated at least 
once a year; but if you don't have a lot of authorization activity, it can 
easily go beyond that without rotating, because the default for 
newsyslog.conf is to only rotate auth.log when it gets beyond a certain 
size.  Just add a time for auth.log to rotate, and this will go away.

(rotates auth.log once a month)
/var/log/auth.log                       600  7     256  $M1D0     Z


--
David Fleck
david.fleck at mchsi.com



More information about the freebsd-questions mailing list