Expected Behaviour:
log files in /var/log/lighttpd get rotated per configuration in /etc/logrotate.d/lighttpd
Actual Behaviour:
files do NOT rotate, and following error emits from sudo logrotate -v /etc/logrotate.d/lighttpd
.
reading config file /etc/logrotate.d/lighttpd
.
Handling 1 logs
.
rotating pattern: /var/log/lighttpd/*.log weekly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/lighttpd/access.log
error: skipping "/var/log/lighttpd/access.log" 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.
considering log /var/log/lighttpd/error.log
error: skipping "/var/log/lighttpd/error.log" 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.
not running postrotate script, since no logs were rotated
/var/log/lighttpd directory is
drwxrwxrwx 2 www-data www-data 4096 Jan 2 03:05 lighttpd
obviously this should be an easy fix, but since i haven't mucked with the lighttpd directory (owned by www-data) or its logrotate configuration, it's broken when default installed. Suggesting future versions of pihole resolve this issue
yes, i am running wheezy.
(note lines with only '.' are there because the [code] tag doesn't seem to handle blank lines correctly, though it IS correct in preview)