Run script as root from WebServer

Matias Surdi matiassurdi at gmail.com
Mon Sep 22 20:51:40 UTC 2008


Hi,

I'm using mod_python3 and apache22 to create some scripts and access 
them through a web interface.

The problem is that some of these scripts deal with configuration files 
and some other tasks that require root privileges.

In the past, I've solved this issue by using sudo and allowing just the 
commands I want to allow in the sudoers file to the apache user.But I'm 
wondering if this is the better way to do what I want to do.

What would you do in such a situation?


Thanks for your help.



More information about the freebsd-questions mailing list