RE: PHP and other security problems - a solution idea

2002-04-22 Thread Jeroen Massar
[EMAIL PROTECTED] wrote: Idea: On handling a file, setuid() to owner of file. On closing connection, re-engage original uid (nobody, apache, www-data, whatever it is). PHP will run under user's UID, other users are save. The 'solution' is the perchild MPM ;) Or a dirty hack; run apache as

RE: PHP and other security problems - a solution idea

2002-04-22 Thread Ryan Bloom
The 'solution' is the perchild MPM ;) Or a dirty hack; run apache as root and let it change uid based on the url's owner or something like: Directory /www/www.example.org/user/test/ User test Group users /Directory Something like that would be quite nice too, perhost MPM only

Re: PHP and other security problems - a solution idea

2002-04-22 Thread Joshua Slive
[EMAIL PROTECTED] wrote: Idea: On handling a file, setuid() to owner of file. On closing connection, re-engage original uid (nobody, apache, www-data, whatever it is). PHP will run under user's UID, other users are save. This would be maybe 10 lines of code. It can't be that easy, can it?