NYCPHP Meetup

NYPHP.org

[nycphp-talk] Why can't I create a second directory?

Ajai Khattri ajai at bitblit.net
Thu Aug 30 12:19:30 EDT 2007


On Thu, 30 Aug 2007, Gary Mort wrote:

> I set the mode to 777 just to make sure the directory would be created 
> completely unsecured(I will also note that does not happen, instead the 
> directory is created as 755 which should STILL be acceptable since the 
> script itself is the one creating both directories and thus should be 
> the owner).

That's probably were you're wrong: more often than not, the script will be 
running as the same user as the Apache process (after all, the Apache 
process hands off to the PHP module). So the script is running as "nobody" 
or "www" rather than the owner of the files.



-- 
Aj. (wearing sys admin hat).




More information about the talk mailing list