Re: Error after Sugar 5.2.0 Install - PIC
OK, to shed some light on these issues (I am not a Linux pro but I did set up quite a few systems during the past couple of months):
chown essentailly means nothing else then change ownership. Under ix each file/folder is owned by a user and a group. For Sugar it is recommended (as for almost all web applications) that only the user who runs the web server has access to the files iin the Sugar directories. It is clear why: For security reasons this user cannot log in (this is explicitely forbidden) and all operations (with the exception of maintenance that you do as a superuser) are to be carried out through the web interface and thus through this user from inside the system.
Now if a particular drectory/file does have another user (root, a superuser our yourself in most cases because of the copying/extraction process) it is clear that the web server (=user of it) cannot access this particular directory/file because usually permissions go top down. Hence the system throws errors.
Now the folder is owned by somebody (the web server user) but still it needs to be defined what this user can do. This is also simple: he can list, read or write (and all combinations of it). The same is valid for the owning group and for everybody. What brings us to the so called octal notation:
Each digit means one of the three permitted groups: So 111 means that owner, group and everybody can LIST only, 2 write only, 4 read only, list & write = 3, list & read = 5, read & write = 6; list, read & write = 7
So if you see a notation of 700 - this means only the owner has all permissions, nobody else can do anything (there is one more but we forget about this now). 777 then means that everybody can do everything (very bad).
Another example: 644: the owner can read and write, all others can only read. Please consult the Sugar documentaion in order to see which permissions are needed for which directories.
My apologies if I made mistakes - please correct me
__________________________
Robert Laussegger
http://www.iscongroup.net
Bei Fragen: support@iscon.at
Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
Ab sofort auch mit 6.4.2
Bookmarks