I recently updated my moodledata directory so that all directories have 700 file permissions and all files have 600 as per here: https://docs.moodle.org/310/en/Security_recommendations. However, new files are being written with 666 file permissions. How do I get Moodle to write files with the proper permissions? I saw something in the config.php that talks about permissions for directories, but nothing for files.
Help?