I cannot find where to set umask (to set proper permissions to files created by php scripts)
in Fedora 19. (specifically, I want new files to have the permissions 664)
Linux – How to set umask for php-fpm in Fedora
fedoralinuxphp-fpmsystemdumask
Related Topic
- Ubuntu – Ways to set umask on Ubuntu for daemon processes
- SSH Umask – How to Setup SSH’s Umask for All Types of Connections
- Ssh – How to get full control of umask/PAM/permissions
- Apache 2.2 – How to Set Default umask in Apache on Debian
- Systemd – How to Set Environment Variable in Service
- Linux – Setting umask for all users
- Php – umask for www-data user running PHP on Ubuntu
- Ubuntu – Proper Way of Setting Umask For php-fpm on Debian/Ubuntu
Best Answer
Here's how I finally did it, in case this helps someone:
Create the file
(it must end in
.conf
) with the content:Then run