Re: Secure system calls -- how
| From: | (Jennifer Goodie) | Date: | Wed, 09 Feb 2005 03:34:42 +0000 |
| Subject: | Re: Secure system calls -- how | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-208318@lists.php.net to get a copy of this message | ||
-------------- Original message ----------------------
From: Niels <zorglub_olsen@hotmail.com>
> Jennifer Goodie wrote:
>
> > I wouldn't use system calls to move files around. PHP has built in file
> > system functions. Why shell out to do something that is built in?
>
> Well, the apache user really shouldn't have access to the entire file system
> -- that's the problem.
Should web applications have access to areas on the file system that the apache user doesn't?
I personally only allow my web applications access to certain areas on purpose and set my
permissions to accomplish this. If I need to be a user other than nobody to do something I
don't want my web applications doing it. Of course, I work in an environment where I have root
access to dedicated servers and a sysadmin that listens to what I want, so your experience may be
different. I admittedly do not have a lot of experience getting around the problems caused by
shared hosting.