Re: In a shared environment...

From: Date: Thu, 19 Sep 2002 19:00:46 +0000
Subject: Re: In a shared environment...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116924@lists.php.net to get a copy of this message
> Relative newbie here, and I am just coming to grips with something that I > think is a very bad thing... Please tell me I am wrong. > > When using PHP, it is the Apache user that actually performs things, and > therefore needs permissions. For example, if I want to write data to a file, > I have to chmod o+w the directory it's in to get that to happen. > > The trouble with this, is a shared environment, doesn't this give anyone who > can use PHP on your system the ability to write over any other user's file > if they know the name of it? Am I missing something fundamental here? > > Any help would be appreciated! > > Bill Yep, that's the problem. Running in safe_mode will protect some of those things, along with other settings like include_path, etc. Best protection is to get a dedicated server, though, so you're the only one on it. They really aren't that expensive anymore. ---John Holmes...

« previous php.general (#116924) next »