logrotate permission question

Oliver Marshall oliver.marshall at g2support.com
Wed Apr 15 19:27:39 UTC 2009

Hi chaps

I've created a logrotate config to roll the php error.log file (/var/log/php/error.log) each week. This works fine but the new error.log file that's left (created) after the log is rolled only has permissions for root to read/write, but it appears that it also needs to have www-data read/write for the apache process to write to it.

Is there a way to get the new log file file to have the right permission whenever it gets rolled ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090415/4c174a0e/attachment.html>

More information about the ubuntu-users mailing list