Welcome! Log In Create A New Profile

Advanced

File permissions after logs are gzipped

Posted by jeroen 
File permissions after logs are gzipped
February 21, 2015 03:57AM
Hi,

I've noticed that when the access and error logs are gzipped, that the file permissions of these files are world readable. Yet the access and error logs are not.

I think this should be changed (aside from the fact I could chmod 640 the entire /var/log/nginx folder). Where can this be fixed?

Thanks!
Jeroen
Re: File permissions after logs are gzipped
March 25, 2015 02:14PM
nginx does not gzip any log files, you should look into the logrotate configs (usually /etc/logrotate.d/nginx). Logrotate is the only responsible thing for permissions of any rotated files.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready