FS#25094 - [exim] logrotate.d file needs update for logrotate 3.8.0
Attached to Project:
Community Packages
Opened by Ray (ataraxia) - Sunday, 10 July 2011, 15:24 GMT
Last edited by Ionut Biru (wonder) - Monday, 18 July 2011, 17:18 GMT
Opened by Ray (ataraxia) - Sunday, 10 July 2011, 15:24 GMT
Last edited by Ionut Biru (wonder) - Monday, 18 July 2011, 17:18 GMT
|
Details
Description:
As of version 3.8.0, logrotate now needs to be told when logs are owned by a user and/or group other than root. If not, it will skip the log and produce an error: error: skipping "/var/log/exim/mainlog" 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. This can be easily fixed for exim's case by adding a line "su exim exim" inside the block in /etc/logrotate.d/exim. Updated file attached. Additional info: * package version(s) exim 4.76-2 * config and/or log files etc. Steps to reproduce: Run logrotate |
This task depends upon
error: error creating output file /var/log/old/mainlog.1.gz: Permission denied