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:
*** Bug 2099669 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 6.0 Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:1360