Bug 755491

Summary: logrotate complains about ownership of quagga's logfiles
Product: [Fedora] Fedora Reporter: Quentin Armitage <quentin>
Component: quaggaAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: aglotov, balajig81, jskala
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: quagga-0.99.20-4.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-04 02:29:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Patch for /etc/logrotate.d/quagga to resolve logrotate errors. none

Description Quentin Armitage 2011-11-21 10:09:02 UTC
Created attachment 534753 [details]
Patch for /etc/logrotate.d/quagga to resolve logrotate errors.

Description of problem:
logroate generates the following error messages when it runs with the default configuration:
error: skipping "/var/log/quagga/zebra.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.
error: skipping "/var/log/quagga/bgpd.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.
error: skipping "/var/log/quagga/ospfd.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.
error: skipping "/var/log/quagga/ospf6d.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.
error: skipping "/var/log/quagga/ripd.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.
error: skipping "/var/log/quagga/ripngd.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):
quagga-0.99.20-3.fc16.i686


How reproducible:
Always

Steps to Reproduce:
1.Install quagga
2.Execute /etc/cron.daily/logrotate
3.
  
Actual results:
Email with error messages as above, and log files not rotated

Expected results:
No error messages and log files rotated

Additional info:
The attached patch has resolved the problem, i.e. adding su quagga quagga to each entry in /etc/logrotate.d/quagga

Comment 1 Fedora Update System 2011-11-23 11:10:25 UTC
quagga-0.99.20-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/quagga-0.99.20-4.fc16

Comment 2 Fedora Update System 2011-11-23 23:30:37 UTC
Package quagga-0.99.20-4.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 quagga-0.99.20-4.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16325/quagga-0.99.20-4.fc16
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-12-04 02:29:37 UTC
quagga-0.99.20-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.