How to umask nginx to make it write files in 770 (cache/logs)
tdgh2323 at hotmail.com
Sat Apr 21 02:09:30 UTC 2012
I tried this in the init script:
su - nginx -c "umask 002";
None of them work... new cache files/dir still get 700 permissions...
What could i be doing wrong=?
> Date: Fri, 20 Apr 2012 04:55:42 -0700
> From: jdmls at yahoo.com
> Subject: Re: How to umask nginx to make it write files in 770 (cache/logs)
> To: nginx at nginx.org
> From: Micheal Wolfskill <tdgh2323 at 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...
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx