PDA

View Full Version : File permissions


queticon
12-31-1998, 11:55 AM
Ok here is my delima.

I have placed the agora package in a dirctory right off my www root directory.

now in the destructions it says the following:

2. Make sure the following directories are writeable by the user-id under which the WEB server runs :

w-agora/
w-agora/admin/
w-agora/conf/

I am not sure of what user id they are speaking of. my user id or the sys admin user-id and how would I go about setting these permissions

thanks


------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com

Terra
12-31-1998, 12:08 PM
Ok, it looks like agora is a PHP3 based...

The only negative that I've found about PHP3 is that it does **not** follow the same rules as CGI scripts...

CGI scripts run as *your* user/group ID...
PHP3 script run as the Web server user/group which is: apache/apache

I have looked into a method for letting PHP3 switch to your userid/group, but it was designed for that...

You will have to make directories that you want it to write to as mode 777... http://www.aota.net/ubb/frown.gif

Hence, the whole -Domain Lockdown- Beta to make sure that this is not a security hazard...

Once again, Apache web server runs as: Apache(98)/apache(98) and *not* as your userid, since suEXEC knows nothing about PHP3 scripts as the PHP3 engine parses it internally, whereas CGI scripts are called via suEXEC as they are external to Apache...

I hope this makes sense, and that you see the one minor limitation of PHP3... Other than that, PHP3 rocks!

--
Terra
sysAdmin
FutureQuest

------------------
www.FutureQuest.net (http://www.FutureQuest.net)
--FutureQuest goal: (10x+8)/(x+1)=9.99--
--The best way to predict the future is by inventing it--

queticon
12-31-1998, 12:43 PM
Yes that made sense and was very help full. I have the package running as a standard dbm txt file. It was wanting a database all to itself. I knew this was not possible since my db is named differently. I am going to test this thing under the dbm setup and I will let you know....and the chmod 777 worked and I agree http://www.aota.net/ubb/frown.gif
Although those directories are password protected with a different password then my normal one.

Did all that rambaling make sense Terra?



------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com