in the new installation (for a client), I haven’ touched the config.phpin terms of array:
So this is the "factory setting to to speak. But should it really be like this?
From my understanding folders should be 775 and files 644?
The following documentation is for SuiteCRM Version 7.x; to see documentation on the same topic for Version 8+, click here.
Downloading and installing SuiteCRM If you are installing SuiteCRM for the first time, follow the instructions in this...
sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null
Right?
Or am I completely incorrect?
The reason I’m digging into this again is because the client’s CRM instance has a lot of “undefined” on popups and buttons in some places like Studio…
I found this thread about the same subject:
Hi, I have a project installed with the following features:
CRM Suite version 7.2.1
Sugar CRM version 6.5.20
In the popups and some error messages I get as “undefined”, instead of the corresponding text. I have reviewed the issue of permissions to the adviser as well as made a quick repair of the project from Admin, but those messages keep coming out. What I can do?.
Thanks in advance and greetings
I ran the “chown 755” command in the Linux prompt and now all files / folders are on that permission.
It does seem to have solved the “Undefined ” issue, but I’m not very happy with having these high level permissions in terms of security.
I will test further to see that everything is working properly on this CRM instance…
Thanks in advance.
It seems that it is working properly as before all buttons said “Undefined ”.
But from a security perspective - 755 - on everything feels quite silly and a bit Russian roulette…
Thoughts?
Thanks again.
pgr
29 February 2024 19:57
3
I agree with using a 0 for World permissions. But you need to keep the distinction from the recommended installation procedure, about some directories requiring write access, while others don’t need it.
Anyway, I don’t like our current permissions instructions. We should really make better ones, remove all “world” permissions, suggest a nice scheme where access happens from the Group bits, not the Owner bits. A few code tweaks would also be very beneficial in the area of permissions.
This is m…
To write values like 755 into the config.php array, make sure you prefix them with a zero, so 0775
. This is PHP’s notation for specifying octal numbers.
Those 1528 are decimal, if you run them through a decimal-to-octal conversion you will see more familiar chmod values.
1 Like
Thanks for the reply pgr.
So…
‘dir_mode’ => 0???
This one doesn’t make sense to me. That cannot be the correct value?
and
‘file_mode’ => 0755
?
Thanks a bunch!
Why do you think 2770 cannot be correct?
Never seen that value before.
I just checked it out with FileZilla though:
Seems legit
1.) Please do educate me why the group has all the permissions and why it is needed if possible so I understand it better.
2.) As I understand group permission its for all “Users” on the server that has access/ownership to a file/folder right?
3.) Mostly important on shared environments like when you use a hosting company and are sharing a “public” server with tons of other customers. (?).
4.) 2770 is for the files in the www directory/sub-directories, correct?
Thanks a bunch!