How to change file permission of error.log and access.log

Sergey Budnevitch sb at
Mon Sep 24 10:09:19 UTC 2012

On 22  Sep2012, at 22:13 , Vivek Goel <goelvivek2011 at> wrote:

> Is there a way to change the file permission of access.log and error.log?
> Currently nginx is creating file in user readable and writable mode. 
> I want those files to be readable by group.

Only with external tools. nginx has no such settings and you could not
use umask either, because nginx call umaks(0) on start.

More information about the nginx mailing list