| Summary: | error: skipping "/var/log/rhn/rhn_web_api.log" because parent directory has insecure permissions... | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Jan Hutař <jhutar> |
| Component: | Server | Assignee: | Marcelo Moreira de Mello <mmello> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 1.8 | CC: | jpazdziora, mmello |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-11-01 16:18:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 871344 | ||
|
Description
Jan Hutař
2012-04-10 07:47:06 UTC
Taking.... Issue reproduced on F16 + spacewalk 1.8 nightly build. rhn_web_api seems to be fixed on newer Spacewalk version. # logrotate -f /tmp/test.logrotate 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. # ls -la /var/log/tomcat6/catalina.out -rw-rw-r--. 1 tomcat tomcat 1785 May 25 17:17 /var/log/tomcat6/catalina.out # ls -lad /var/log/tomcat6 drwxrwxr-x. 2 root tomcat 4096 May 25 17:17 /var/log/tomcat6 # ls -la /var/log/rhn/rhn_web_api.log -rw-r--r--. 1 tomcat tomcat 292 May 25 17:19 /var/log/rhn/rhn_web_api.log Packages: ----------- spacewalk-backend-1.8.28-1.fc16.noarch tomcat6-6.0.32-17.fc16.noarch logrotate-3.8.0-3.fc16.x86_64
Hello,
It seems that the issue already were reported as showed below on automatic tests.
# 748913 - logrotate issue (Waiting fix on Tomcat6)
# 790334 - tomcat-7.0.logrotate should specify "su root tomcat" (addressed on Tomcat7)
Examing the /etc/logrotate.d/tomcat6 we have:
[root@dhcp83 logrotate.d]# rpm -qf /etc/logrotate.d/tomcat6
tomcat6-6.0.32-17.fc16.noarch
[root@dhcp83 logrotate.d]# cat /etc/logrotate.d/tomcat6
/var/log/tomcat6/catalina.out {
copytruncate
weekly
rotate 52
compress
missingok
create 0644 tomcat tomcat
}
[root@dhcp83 logrotate.d]# logrotate -f /etc/logrotate.d/tomcat6
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.
Since the rhn_web_api.log seems to be fixed, and the other issue is related with tomcat6, I think we can close this case as WORKSFORME.
I'm double checking with spacewalk-devel team before close it.
Thank you.
Best Regards,
mmello
Hello,
Since the issue related with /var/log/rhn/rhn_web_api.log is fixed, the issue related with Tomcat is being tracked by bz#748913 (https://bugzilla.redhat.com/show_bug.cgi?id=748913).
Flagging this to MODIFIED.
Best Regards,
mmello
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/ Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18 |