FS#29115 - [exim] logrotate fails to move logs
Attached to Project:
Community Packages
Opened by x33a (x33a) - Sunday, 25 March 2012, 19:21 GMT
Last edited by Dave Reisner (falconindy) - Monday, 26 March 2012, 03:14 GMT
Opened by x33a (x33a) - Sunday, 25 March 2012, 19:21 GMT
Last edited by Dave Reisner (falconindy) - Monday, 26 March 2012, 03:14 GMT
|
Details
Description:
logrotate failed to move the exim log files to the old logs folder. I got this message from the logrotate cronjob error: failed to rename /var/log/exim/mainlog to /var/log/archive/mainlog.1: Permission denied error: failed to rename /var/log/exim/paniclog to /var/log/archive/paniclog.1: Permission denied Permissions on those files are: # ls -l /var/log/exim/ total 8 -rw-r----- 1 exim exim 2921 Mar 25 20:46 mainlog -rw-r----- 1 exim exim 208 Mar 21 18:59 paniclog Additional info: * package version(s) exim 4.77-3 logrotate 3.8.1-1 |
This task depends upon
Closed by Dave Reisner (falconindy)
Monday, 26 March 2012, 03:14 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#25094
Monday, 26 March 2012, 03:14 GMT
Reason for closing: Duplicate
Additional comments about closing:
# ls -ld /var/log/archive/
drwxr-xr-x 2 root root 4096 Mar 25 20:46 /var/log/archive/
In the /etc/logrotate.d/exim
/var/log/exim/*log {
su exim exim
missingok
notifempty
delaycompress
}
is the su line necessary? If it's not there then won't it run as root and work fine?
from the logrotate.conf manpage:
su user group
Rotate log files set under this user and group instead of using default user/group (usually root). user specifies the user name used for rotation and group specifies the group used for rotation.
Is the exim logrotate file added by the upstream author? Otherwise the packager might know why it includes the su line.
http://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/exim&id=e0be6c22b5a
...which points to
FS#25094. The su addition is clearly intentional.Ran logrotate manually and it rotates the log files fine.
I guess the bug can be closed. Thanks for the help.