/usr/sbin/logrotate and /etc/logrotate.conf disappeared.
I was just diagnosing a webalizer issue, when I noticed that /usr/sbin/logrotate and /etc/logrotate.conf were missing.
The apt and auth logs didn't show anything amiss, so I don't think I've been hacked.
Firstly, could someone post the default /etc/logrotate.conf from Debian 5 here, please. I can't find it online, and re-installing logrotate does not create the file.
Also, any clues as to why these files would have disappeared?
Cheers,
Richard
1 Reply
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be configured here
But, why did these disappear? There's nothing in the shell history, nothing in the auth logs.
Very, very odd.