Nginx access log and error log

Sergey A. Osokin osa at freebsd.org.ru
Thu Mar 3 23:37:30 UTC 2022


Hi,

On Thu, Mar 03, 2022 at 05:21:35PM -0500, aishwarya.deshmukh wrote:
> Hi
> 
> Currently the access log and error log are written with the below
> permission
> 
> -rw-r-----. 1 nginx adm  268 Mar  4 03:43 error.log
> 
> However I want them to write in -rwxr-xr-x but everytime it writes the
> access or error logs, it writes in a read format. I can manually change
> their permission but I want them to originally write it with the correct
> permissions

Not sure why do want to add an execution bit to a log file, what's the case?

> Can you please confirm how to get this done?

-- 
Sergey A. Osokin



More information about the nginx mailing list