Bug 883806
| Summary: | tomcat-7.0.logrotate should specify "su root tomcat" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> |
| Component: | tomcat | Assignee: | Ivan Afonichev <ivan.afonichev> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | akurtako, ivan.afonichev, java-sig-commits, jpazdziora, kdaniel, martin |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 790334 | Environment: | |
| Last Closed: | 2012-12-19 08:28:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 790334 | ||
| Bug Blocks: | 876987 | ||
|
Description
Jan Pazdziora (Red Hat)
2012-12-05 11:15:57 UTC
The problem is either back with tomcat-7.0.32-1.fc17.noarch or was not ever properly fixed.
# logrotate -f /etc/logrotate.d/tomcat
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.
# rpm -qf /etc/logrotate.d/tomcat
tomcat-7.0.32-1.fc17.noarch
# rpm -Vf /etc/logrotate.d/tomcat
SM5....T. c /etc/tomcat/server.xml
SM5....T. c /etc/tomcat/tomcat.conf
S.5..U.T. c /etc/tomcat/web.xml
.....U... /var/lib/tomcat/webapps
S.5....T. /var/log/tomcat/catalina.out
# cat /etc/logrotate.d/tomcat
/var/log/tomcat/catalina.out {
copytruncate
weekly
rotate 52
compress
missingok
create 0644 tomcat tomcat
}
# ls -lad /var/log/tomcat
drwxrwx---. 2 root tomcat 4096 Dec 6 15:58 /var/log/tomcat
The original proposal was either to do su (which I consider the best one) or to do tomcat:root ownership. But it is root:tomcat. And logrotate-3.8.1-3.fc17.i686 is not happy.
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. |