/usr/sbin/logrotate and /etc/logrotate.conf disappeared.

The strangest thing.

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

OK, found a copy of logrotate.conf.

 # 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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct