rsyslog log files failing to rotate

Bug #1875950 reported by Dominic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In focal, /etc/logrotate.conf contains:

   su root adm

logrotate does not rotate files in /var/log:

   error: skipping "/var/log/syslog" because parent directory has insecure permissions
   (It's world writable or writable by group which is not "root") Set "su" directive
   in config file to tell logrotate which user/group should be used for rotation.

Parent directory permissions:

  drwxrwxr-x 9 root syslog 4096 Apr 29 17:17 log

Revision history for this message
Dominic (triatic) wrote :

My mistake, error does not appear with:

   sudo logrotate -d /etc/logrotate.conf

For some reason my logs are not being rotated though.

Revision history for this message
Dominic (triatic) wrote :

VM reinstalled, logs are rotating now.

Changed in logrotate (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.