Question : securing ubuntu server

Is there a way to stop www-data from executing perl scripts, unless it is in the /var/www/html/vhost?

thanks

Answer : securing ubuntu server

I was surfing apache details at
http://httpd.apache.org/docs/1.3/howto/cgi.html
and
http://httpd.apache.org/docs/1.3/mod/core.html#options

disabling apache user from executing files is not there.

however, you can circumvent the problem, like this:

a) permit execution only from a specific directory
b) forbid the user to do damage using selinux or pax

b) is not trivial but its the best thing to control what the www-data user can execute and what not.
Random Solutions  
 
programming4us programming4us