modoboa-installer
modoboa-installer copied to clipboard
Wrong permissions when restrictive umask is used
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 What would be a good fix for that ?
I suggest to explicitely enforce permissions on every created file. Using chmod for files, or mkdir -m for directories.