rsyslog log files failing to rotate
Bug #1875950 reported by
Dominic
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
To post a comment you must log in.
My mistake, error does not appear with:
sudo logrotate -d /etc/logrotate.conf
For some reason my logs are not being rotated though.