Bug 753983
Summary: | logrotate complains about insecure permissions | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nerijus Baliūnas <nerijus> |
Component: | roundcubemail | Assignee: | Gwyn Ciesla <gwync> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | christoph.wickert, cyrusjoudieh, fedora, gwync, ondrejj, paul, scott-fedora |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | roundcubemail-0.5.4-3.fc15 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-03-17 23:46:09 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: |
Description
Nerijus Baliūnas
2011-11-15 01:49:53 UTC
Missing su in /etc/logrotate.d/roundcubemail [root@host logrotate.d]# /etc/cron.daily/logrotate error: skipping "/var/log/roundcubemail/errors" 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. add the "su" under create inside the file /etc/logrotate.d/roundcubemail [root@host logrotate.d]# cat roundcubemail /var/log/roundcubemail/errors { missingok notifempty size 30k create 0660 root apache su } That should fix it, and the error is not there. [root@host logrotate.d]# /etc/cron.daily/logrotate [root@host logrotate.d]# > [root@host logrotate.d]# cat roundcubemail > /var/log/roundcubemail/errors { > missingok > notifempty > size 30k > create 0660 root apache > su > } > > That should fix it, and the error is not there. su requires 2 parameters, user and group. Please add apache apache. > [root@host logrotate.d]# /etc/cron.daily/logrotate > [root@host logrotate.d]# Maybe you started this when logs have been already rotated. Please, also add other files in /var/log/roundcubemail to rotation script. You can use: /var/log/roundcubemail/* I am not sure, if su and create ... root are compatible. roundcubemail-0.5.4-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/roundcubemail-0.5.4-2.fc16 roundcubemail-0.5.4-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/roundcubemail-0.5.4-2.fc15 Package roundcubemail-0.5.4-2.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 roundcubemail-0.5.4-2.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-3043/roundcubemail-0.5.4-2.fc16 then log in and leave karma (feedback). *** Bug 802811 has been marked as a duplicate of this bug. *** roundcubemail-0.5.4-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. roundcubemail-0.5.4-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. Using 0.5.4-2 on fc15 I am now seeing the following error from logrotate error: roundcubemail:3 unknown option 'su' -- ignoring line It seems update should have been released for F16 only. Oh, that's a new feature with 3.8.x. Whoops. I'll get a fix out. roundcubemail-0.5.4-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/roundcubemail-0.5.4-3.fc15 roundcubemail-0.5.4-3.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |