From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 07:20:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C656106564A for ; Tue, 23 Sep 2008 07:20:12 +0000 (UTC) (envelope-from sasa@stupar.homelinux.net) Received: from avs2.arnes.si (avs2.arnes.si [193.2.1.75]) by mx1.freebsd.org (Postfix) with ESMTP id D08A58FC13 for ; Tue, 23 Sep 2008 07:20:11 +0000 (UTC) (envelope-from sasa@stupar.homelinux.net) Received: from localhost (unknown [193.2.1.75]) by avs2.arnes.si (Postfix) with ESMTP id 62AA8467E1 for ; Tue, 23 Sep 2008 09:20:10 +0200 (CEST) X-Virus-Scanned: by amavisd-new at arnes.si Received: from avs2.arnes.si ([193.2.1.75]) by localhost (avs2.arnes.si [193.2.1.75]) (amavisd-new, port 10024) with ESMTP id Vxl3ccEwP0c6 for ; Tue, 23 Sep 2008 09:20:10 +0200 (CEST) Received: from xmail.homelinux.net (cmb16-74.dial-up.arnes.si [194.249.51.74]) by avs2.arnes.si (Postfix) with ESMTP id 36B8B467BC for ; Tue, 23 Sep 2008 09:20:09 +0200 (CEST) Received: by xmail.homelinux.net (Postfix, from userid 80) id DDFFD1CCA9; Tue, 23 Sep 2008 09:20:09 +0200 (CEST) Received: from informat1.informatika.si (informat1.informatika.si [194.152.17.226]) by posta.homelinux.net (Horde Framework) with HTTP; Tue, 23 Sep 2008 09:20:09 +0200 Message-ID: <20080923092009.19146ifimaiui3l5@posta.homelinux.net> Date: Tue, 23 Sep 2008 09:20:09 +0200 From: "=?utf-8?b?U2HFoWE=?= Stupar" To: freebsd-questions@freebsd.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_6gpmf1zm7oa1"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Run script as root from WebServer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2008 07:20:12 -0000 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--