Re: Files created by PHP/Apache
| From: | Curt Zirzow | Date: | Wed, 30 Jul 2003 18:20:12 +0000 |
| Subject: | Re: Files created by PHP/Apache | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157558@lists.php.net to get a copy of this message | ||
* Thus wrote Joachim (JOFT@gmx.de):
> Curt Zirzow wrote:
>
> >> This way, it seems to me like security hole, because I have to
> >> use 0777 while creating, then everybody could do everything with
> >> the files. Well, there is the open_basedir setting, put then,
> >> what's about other user doing other things (not PHP)?
> >>
> >
> > Yes that is a big security hole. There are some hosting solutions,
> > I cant really help you there, but this concept I think should work
> > would be:
> > [...]
> > user/group: $virtualuser/apache
>
> Hmm, well. It may be "more" secure, but there is still the problem, that
> every $virtualuser can access the files. You still have to hope that there
> is now "bad" $virtualuser.
perhaps a little more detail on how things would be set up:
Folder strucure user/group permissions
/www/virtual1-domain.com/www/ virtual1/apache 0770
/www/virtual2-domain.com/www/ virtual2/apache 0770
thus virtual1 cant touch virtual2's files and vice versa.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."