Description of problem: Tomcat's logrotate.d file needs to set "su root tomcat" to suppress logrotate errors like: error: skipping "/var/log/tomcat6/catalina.out" 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): How reproducible: Always Steps to Reproduce: 1. Install tomcat 2. Run /etc/cron.daily/logrotate Actual results: Expected results: No errors. Additional info: Patch to fix is: diff --git a/tomcat-7.0.logrotate b/tomcat-7.0.logrotate index a87b4c0..926928a 100644 --- a/tomcat-7.0.logrotate +++ b/tomcat-7.0.logrotate @@ -4,5 +4,6 @@ rotate 52 compress missingok + su root tomcat create 0644 tomcat tomcat }
Maybe it's better to set tomcat:root as owner for /var/log/tomcat ?
tomcat-7.0.26-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/tomcat-7.0.26-1.fc16
tomcat-7.0.26-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/tomcat-7.0.26-1.fc17
Package tomcat-7.0.26-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tomcat-7.0.26-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-2217/tomcat-7.0.26-1.fc16 then log in and leave karma (feedback).
tomcat-7.0.26-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
tomcat-7.0.26-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
Hello, I do see this again: tomcat-7.0.32-1.fc17.noarch error log is: error: skipping "/var/log/tomcat/catalina.out" 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.
tomcat-7.0.33-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/tomcat-7.0.33-2.fc17
Package tomcat-7.0.33-2.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tomcat-7.0.33-2.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20025/tomcat-7.0.33-2.fc17 then log in and leave karma (feedback).
tomcat-7.0.33-2.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/tomcat-7.0.33-2.fc18
tomcat-7.0.33-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/tomcat-7.0.33-1.fc16
tomcat-7.0.33-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
tomcat-7.0.33-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
tomcat-7.0.33-2.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.