httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gare" <g...@wanadoo.es>
Subject Re: [users@httpd] Security APACHE, PHP and CGI
Date Sun, 10 Apr 2005 22:48:21 GMT
By now I know that every hosted domain must have their system user, but the 
CGI security problem is the same: yopu can't restrict cgi programs to a 
folder (the home directory). Cgiwraps I've read about work assigning a user 
to the cgi program, this program run as user and not as nobody (user under 
Apache runs).

I suposse that there is only two ways: host without cgi or install a VPS

Thanks


----- Original Message ----- 
From: "Joshua Slive" <jslive@gmail.com>
To: <users@httpd.apache.org>
Sent: Saturday, April 09, 2005 9:27 PM
Subject: Re: [users@httpd] Security APACHE, PHP and CGI


> On Apr 9, 2005 2:44 PM, Gare <gare@wanadoo.es> 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.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message