Description of problem: /etc/cron.daily/logrotate: error: skipping "/var/log/ceph/cephadm.log" 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. Version-Release number of selected component (if applicable): ceph version 16.2.0-152.el8cp How reproducible: Always Steps to Reproduce: 1. see the /etc/logrotate.d/cephadm 2. try to rotate the logs using command"logrotate /etc/logrotate.d/cephadm" 3. my /etc/logrotate.d/cephadm # cat /etc/logrotate.d/cephadm ================================== # created by cephadm /var/log/ceph/cephadm.log { rotate 7 daily compress missingok notifempty } ================================== Actual results: error: skipping "/var/log/ceph/cephadm.log" 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. Expected results: logs should be rotated Additional info:
*** This bug has been marked as a duplicate of bug 2099670 ***