modoboa-installer icon indicating copy to clipboard operation
modoboa-installer copied to clipboard

Wrong permissions when restrictive umask is used

Open tmartinfr opened this issue 9 years ago • 2 comments

I used to have 077 umask on my root accounts. In this case, /srv/modoboa/instance/sitestatic/ is created with too restrictive permissions, and static files are not served by Nginx.

So I used this temporary workaround :

chmod go+rX /srv/modoboa/instance/
chmod -R go+rX /srv/modoboa/instance/sitestatic/

Maybe other file locations are impacted.

tmartinfr avatar Jun 26 '16 20:06 tmartinfr

@tmartinfr What would be a good fix for that ?

tonioo avatar Sep 16 '16 15:09 tonioo

I suggest to explicitely enforce permissions on every created file. Using chmod for files, or mkdir -m for directories.

tmartinfr avatar Sep 24 '16 10:09 tmartinfr