Date: Tue, 23 Sep 2008 09:20:09 +0200 From: "=?utf-8?b?U2HFoWE=?= Stupar" <sasa@stupar.homelinux.net> To: freebsd-questions@freebsd.org Subject: Re: Run script as root from WebServer Message-ID: <20080923092009.19146ifimaiui3l5@posta.homelinux.net> In-Reply-To: <gb90gf$ev7$1@ger.gmane.org> References: <gb90gf$ev7$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed. --=_6gpmf1zm7oa1 Content-Type: multipart/mixed; boundary="=_5ohng9kii7jd" Content-Transfer-Encoding: 7bit This message is in MIME format. --=_5ohng9kii7jd Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit > 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. I use suexec for situations like this. -- Sasa Stupar --=_5ohng9kii7jd-- --=_6gpmf1zm7oa1 Content-Type: application/pgp-signature Content-Description: Digitalen podpis PGP Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkjYmKkACgkQNT6IH6ilQwjDYQCfYCKQJq4Aj6BT7GYwgGwPApPS BPkAn0vaAcyzYcYXXlrl6D2k/uoV9z+a =AXDp -----END PGP SIGNATURE----- --=_6gpmf1zm7oa1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080923092009.19146ifimaiui3l5>