# How make nginx write cache files in 770 permissions instead of 700?

**URL:** <https://www.ruby-forum.com/t/how-make-nginx-write-cache-files-in-770-permissions-instead-of-700/218913>\
**Category:** NGINX\
**Created:** [April 15, 2012, 10:18pm UTC](https://www.ruby-forum.com/t/how-make-nginx-write-cache-files-in-770-permissions-instead-of-700/218913 "2012-04-15T22:18:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [April 15, 2012, 10:18pm UTC](https://www.ruby-forum.com/t/how-make-nginx-write-cache-files-in-770-permissions-instead-of-700/218913/1 "2012-04-15T22:18:53Z")

</div>

Hello all,

I included a special user into the nginx group with the purpose of  
giving privilege to be able to delete or read nginx cache files. The  
problem is nginx writes these in 700 mode. What is the simplest way I  
can achieve what I want? Perhaps forcing nginx to write cache files in  
770 ?

Regards,  
Mike

---

<div class="post-metadata">

**Author:** ![Micheal\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@Micheal\_W](https://www.ruby-forum.com/u/Micheal_W)\
**Post date:** [April 16, 2012, 12:14am UTC](https://www.ruby-forum.com/t/how-make-nginx-write-cache-files-in-770-permissions-instead-of-700/218913/2 "2012-04-16T00:14:01Z")

</div>

On 15 Abr 2012 22h18 CEST, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello all,
> 
> I included a special user into the nginx group with the purpose of  
> giving privilege to be able to delete or read nginx cache files. The  
> problem is nginx writes these in 700 mode. What is the simplest way  
> I can achieve what I want? Perhaps forcing nginx to write cache  
> files in 770 ?

Isn’t it simpler and potentially safer to use a setuid wrapper?

I like super: [Manpage of SUPER](http://www.ucolick.org/~will/RUE/super/super.1.html)

You can create a wrapper command that grants the right to delete the  
cache files to a specific user.

— appa
