RE: [PHP-INSTALL] php + apache - how to run php suid?
| From: | Giz | Date: | Sun, 07 Mar 2004 00:03:59 +0000 |
| Subject: | RE: [PHP-INSTALL] php + apache - how to run php suid? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-12910@lists.php.net to get a copy of this message | ||
The php module way to handle this is to make use of apache security
facilities. Keep in mind, that cgi != modules. They are fundamentally
different. A module is part of the webserver process by definition. This
is it's strength in terms of performance.
What you have available to you for security is safe_mode.
Take a look at this article.
-----Original Message-----
From: Brian McGroarty [mailto:brian@mcgroarty.net]
Sent: Saturday, March 06, 2004 12:05 AM
To: php-install@lists.php.net
Subject: [PHP-INSTALL] php + apache - how to run php suid?
I use apache's suid mechanism so that all cgi scripts in a user home
directory run as that user. php scripts seem to still run as the
apache user (www-data with Debian) however.
Obviously this represents a nasty security risk, to say nothing of
complicating disk quota management. As things stand, I can't give my
friends php access and still sleep well. :)
Is there a mechanism for php that's similar to suid? I'm hoping I
don't have to install php as cgi for each user to do this.