Hey,
I don’t know why but seems that the script is trying to “reset” or “set” it’s own permissions. In our case we’re using a hardened configuration which doesn’t allows 777 (suPHP + suhosin + CloudLinux). It’s mostly happening for the “cache” directory.
Any way to stop this from occuring?
Thanks!
Hi,
maybe this :
http://support.sugarcrm.com/Knowledge_Base/Administration/Platform_Management/Setting_Default_File_Permissions_and_Ownership_Via_config.php/index.html
in config.php
‘default_permissions’ =>
array (
‘dir_mode’ => 1528,
‘file_mode’ => 432,
‘user’ => ‘’,
‘group’ => ‘’,
),
$sugar_config[‘default_permissions’][‘user’] = ‘’;
$sugar_config[‘default_permissions’][‘group’] = ‘’;
Regards
Great, I’ll give it a try right away!
It works. Partially.
The files should be 644 and folders should be 755. Here’s the config.php:
array (
'dir_mode' => 0755,
'file_mode' => 0644,
'user' => 'wow',
'group' => 'wow',
),
It’s weird. Some files are ok, some are not. Here’s an example:
cache/dashlets]# ls -la
-rw-r--r-- 1 wow wow 14890 Nov 18 18:47 dashlets.php <<< this is ok!
cache/Relationships]# ls -la
-rw-r-xr-x 1 wow wow 288680 Nov 18 18:47 relationships.cache.php <<< this is not ok!
Any ideas?
I’ve also added this to “config_override.php”:
$sugar_config['default_permissions']['user'] = 'wow';
$sugar_config['default_permissions']['group'] = 'wow';
$sugar_config['default_permissions']['dir_mode'] = '0755';
$sugar_config['default_permissions']['file_mode'] = '0644';
Still nothing changes. This is REALLY frustrating!
I’ve also modified this:
include/utils.php
include/Smarty/Smarty.class.php
Still cache/Relationships\relationships.cache.php insists on being 0655!