httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Security APACHE, PHP and CGI
Date Sat, 09 Apr 2005 19:27:19 GMT
On Apr 9, 2005 2:44 PM, Gare <> wrote:
> That's why I'm looking for a solution, an easy and affordable solution. Of
> course my subdomains with a share user can't use php nor cgi.
> Then if a cgi program can access all over the server (files like
> /etc/passwd ), how do enterprise that provide shared hosting with
> cgi/php/mysql support?

They don't share userids.

> Even if I create a system user for every subdomain webserver, CGI could
> access important files in the server (/etc/shadow or /etc/passwd ... ), or
> perhaps could mod_security avoid this action?

No, they will only have access to the files that you allow them to
access.  /etc/shadow certainly wouldn't be one of those.

Another idea is to look at cgiwrap, which has a somewhat more flexible
attitude towards permission changing.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message