I'm adding products to my development website and I've noticed that images are not showing on the front end. After inspecting these, I can see that the chown user and group is correct but the file permissions of these images are set to 666. Is there a way I can make Magento correctly set these to 644 without having to set a cron job up?
Magento sets file permissions whenever we write files, like static view files, to the file system. The permissions differ by mode but ownership should always be the web server user.
In developer mode, directories have 770 permissions and files have 660. In production mode, directories have 750 and files have 640.
Ownership is kind of tricky and it confuses people so use this topic to get full details.