AnsweredAssumed Answered

Permission problem - files created in limited permissions

Question asked by Asaf Army on Feb 3, 2014
Latest reply on Sep 12, 2014 by gmcdonald gmcdonald
i set the permissions of my SugarCRM ce 6.5.13 in my linux server on:
chmod 666 ./config.php
chmod 666 ./config_override.php
chmod 777 -R ./custom/
chmod 777 -R ./cache/
chmod 777 -R ./modules/
chmod 777 -R ./upload/
chmod 777 -R ./custom/ZuckerReports2
chmod 777 ./custom/blowfish/
chmod 777 -R ./custom/modules/

The problem is that after each rebuild, a file is created in the cache folder with limited permissions 660 and makes the whole crm fail.
The file is cache/modules/Emails/language/he_il.lang.php, so although the cache folder has full permission (777), the file is created with limited permissions (660) and i get the error:

  failed to open stream: Permission denied in 
on line 253

Fatal error: require(): Failed opening required 
on line 253

is this a SugarCRM bug or a server configuration bug?
who is responsible of automatically creating the new file with its parent folder permissions so there won't be trouble? and how do i fix this?