• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Question about umask and file permission for domain

gennolo

Basic Pleskian
Hello,
I ask for help to understand this situation - Sorry for being long :D

I installed a domain with Prestashop 1.7 on a Plesk Onyx Centos 7 box with pretty standard settings
(PHP-FPM server by Apache - Php7 Plesk handler).
Domain is using its own user / webspace with the classic "psacln" group and files/folder with 644/755 permission.

It happens that when I try to add some new modules from the application backoffice
or when the application writes cache files
they are written with 666 permission for files and 777 for folders. This looks like totally insecure, and it never happened with other domains on the same host with different applications with the same domain setting, where I have the expected result (644 for files / 755 for folders).


I see lot of people are reporting this behaviour, and the answer was
"this is due to Symfony framework used in Prestashop 1.7 that uses server umask setting to set files/folder permission , so check / fix your envoriment because you have wrong umask".

I checked my server and #umask command (launched as root) is reporting 0022 that is supposed to be the correct setting to have 644 / 755 permission during uploads.

So my question is : am I missing something about umask or how Plesk is setting this value ?
Is there some umask setting I need to check at web-server user level or in Plesk domain configuration ?
Or is the application that needs to be fixed ?

Thank you !
 
Back
Top