/var/log/wtmp always reseting to 0

questions questions at zeus.davez.org
Fri Oct 1 15:52:23 PDT 2004



On Fri, 1 Oct 2004, Richard Lynch wrote:

> man logrotate
>
> Probably the logs are getting rotated and old ones discarded.
>
> Or, possibly, you haven't realized that the old logs are in /var/log/*.#
> where * matches the old log name, and # is 1 to N, for some N defined in
> logrotate configuration.

man logrotate does nothing =

________Snip Command Output_______
$ man logrotate
No manual entry for logrotate
________End Snip_________________

Given that all wtmp.#.gz files have a 0 size would seem to indicate all
the files were emptied somehow?

__________Snip Command Output_____
$ cd /var/log
$ ls -al wtmp*
-rw-r--r--  1 root  wheel  308 Oct  1 18:34 wtmp
-rw-r--r--  1 root  wheel    0 Oct  1 05:48 wtmp.0
-rw-r--r--  1 root  wheel    0 Oct  1 05:42 wtmp.1
-rw-r--r--  1 root  wheel    0 Oct  1 05:36 wtmp.2
-rw-r--r--  1 root  wheel    0 Oct  1 05:30 wtmp.3
$
_______End Snip__________________

Also the end of month accounting report sent to root shows no logins at
all wound indicate the wtmp file must be resetting to 0 prior to the end
of the month account process taking place?

Dave



More information about the freebsd-questions mailing list