On Friday, January 31, 2014 at 08:24, Paul Martin wrote:
> > If you have a file in /etc/logrotate.d/ with incorrect permissions
> > according to logrotate (e.g. root root 0664) then logrotate will
> > silently ignore the file unless run with -v. That means that errors
> > are not reported to administrators at all.
> >
> > Also I'm not sure why permissions of /etc/logrotate.d/ files are
> > important at all.
>
>
> Can you give an example? Can you try with 3.8.7-1 (in testing)?
It seems to occur in 3.8.7-1 as well. The check is in config.c:
if ((sb.st_mode & 07533) != 0400) {
message(MESS_DEBUG,
"Ignoring %s because of bad file mode.\n",
configFile);
close(fd);
return 0;
}
Ok, I understand that you can place commands in /etc/logrotate.d files and
this is why the above check is done. But I'm not entirely sure the above
message should be MESS_DEBUG, maybe it should be MESS_NORMAL instead so that
the issue is reported to the administrator during log rotation.
Anyway, I think the priority of this bug is more like 'wishlist' now... :)
Regards,
Oskar
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]