We use a Moodle website (PHP) – when files are loaded, they are placed in / tmp / by default, with a naming structure such as phpxxxxxx and the following file permissions:
-rw ——-. Apache apache
How can I change this to be 644?
I've customized the httpd service in / etc / systemd / system, with a .conf file that defines the following:
PrivateTmp = false
UMask = 022
When running systemctl show httpd, an output line says:
UMask = 0022
However, the files continue to be downloaded as read-write for the Apache user only. I do not see where I was wrong. Any help would be appreciated.