On Fri, Jul 26, 2013 at 09:30:40AM +0200, Stéphane CHIRON wrote:

> here's the "ls -l /var/log/mail.*" result before rotation and after I 
> manually chmoded permissions to rw-r-r :

> renaming /var/log/mail.log to /var/log/mail.log.1
> creating new /var/log/mail.log mode = 0644 uid = 0 gid = 4
> renaming /var/log/mail.info to /var/log/mail.info.1
> creating new /var/log/mail.info mode = 0644 uid = 0 gid = 4
> renaming /var/log/mail.warn to /var/log/mail.warn.1
> creating new /var/log/mail.warn mode = 0644 uid = 0 gid = 4
> renaming /var/log/amavis.log to /var/log/amavis.log.1
> creating new /var/log/amavis.log mode = 0644 uid = 113 gid = 108

This SHOULD work and DOES work for most people.  It even says it's
working!

Which version of logrotate are you actually using? Is it from the
Debian archive? Are ACLs enabled on the filesystem with /var/log on
it? Are you running with selinux enabled?

Which MTA are you using and does it have its own logrotate script?

I'm inclined to think this is a misconfiguration rather than a fault
in logrotate.

Does your amavis log get the same permissions breakage?

The other possibility is that there's a race condition between
logrotate and syslog-ng...

Is that /etc/logrotate.d/syslog-ng the stock one or did you modify it?

-- 
Paul Martin <p...@debian.org>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to