On Wednesday, Sep 17, 2003, at 14:15 US/Pacific, John Park wrote: [..]
Although I don't understand why I can't write to the same directory
my CGI scripts are located in.  I've done this before on Free Webhosts
like tripod and netfirms.
[..]

while we are all deeply and emotionally committed
to our code,  { trust me, my source code tree was upset
I did not take it to Matrix Reloaded... } try to remember
that when YOU as 'user John Park' are writing to that
directory - eg saving your code to that space - you
are running as the uid for 'user John Park' - so it is
OK for you to write to your directories.

{ ok, actually the shell session is running as that
UID, but anthropomorphising one's shell is more normal...}

But when the web server as 'user www' invokes the code
it will be running not as 'user John Park' but as
'user www' and those may not be the same user. In
a previous response I put up the illustration of
having a directory in which it is owned by a UID
that is not the UID of the process running there...

I do not know those sites, but you may want to check
what the permissions were on the directories where your
cgi code was installed.

Some folks set those as 777 and leave it all to the gods
that no one will abuse that reality. This is less and
less acceptable on more and more web-sites. Prudence
generally dictates 755 where other members of your group
and the rest of the world can read and execute.

ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to