Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2008 22:51:26 +0200
From:      Matias Surdi <matiassurdi@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Run script as root from WebServer
Message-ID:  <gb90gf$ev7$1@ger.gmane.org>

next in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gb90gf$ev7$1>