Welcome! Log In Create A New Profile

Advanced

Re: How to umask nginx to make it write files in 770 (cache/logs)

jdm
April 20, 2012 07:56AM
From: Micheal Wolfskill <tdgh2323@hotmail.com>

>Iam thinking of setting a umask in nginx... so that it writes files (logs ans cache) in 770 . Anybody know how to do this, or done it?
>I need this because my environment needs access to all files produced by nginx and some are 700 .


Never tried but maybe set the umask at the beginning of the init.d script (but that would apply to all files creation)...
Or a quick/dirty way to do it would be to chmod 770 the log files every x hour or once a day from a cron job...


JD

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to umask nginx to make it write files in 770 (cache/logs)

Micheal Wolfskill April 19, 2012 03:20PM

Re: How to umask nginx to make it write files in 770 (cache/logs)

jdm April 20, 2012 07:56AM

RE: How to umask nginx to make it write files in 770 (cache/logs)

Micheal Wolfskill April 20, 2012 10:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 260
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