From owner-freebsd-questions Sat Nov 30 20:37:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27F2D37B401 for ; Sat, 30 Nov 2002 20:37:20 -0800 (PST) Received: from smtp01.wlv.untd.com (smtp01.wlv.untd.com [209.247.163.57]) by mx1.FreeBSD.org (Postfix) with SMTP id A581443EC2 for ; Sat, 30 Nov 2002 20:37:19 -0800 (PST) (envelope-from idiot1@netzero.net) Received: (qmail 5219 invoked from network); 1 Dec 2002 04:37:12 -0000 Received: from dialup-65.59.83.190.dial1.tampa1.level3.net (HELO netzero.net) (65.59.83.190) by smtp01.wlv.untd.com with SMTP; 1 Dec 2002 04:37:12 -0000 Message-ID: <3DE991FC.20200@netzero.net> Date: Sat, 30 Nov 2002 23:37:16 -0500 From: Kirk Bailey Organization: Silas Dent Memorial Cabal of ERIS Esoteric and hot dog boiling society User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Prewett Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Run as owner References: <20021130162024.V47670-100000@slave.east.ath.cx> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This script is not perl, it is in python. So far the python community has failed in the search for clue, possibly this one can assist? Andrew Prewett wrote: > On Nov 29 Kirk Bailey wrote: > > >>OK, man says to get a script to run as the owner, turn on the 4000 bit. > > > If you execute a script, and the first line begins > with `#!/usr/bin/perl -w' (in case of a perl script) and the sript is > marked executable then the kernel executes it like: > > exec("/usr/bin/perl", "perl", "-w", "script", NULL) > > (It's not exact, just to point out that the setuid/setgid bit is > normally irrevelant on scripts) > > See execve(2) for more. > > >>OK, I did. No such luck, it continues to run as the apache identity 'nobody'. >> >>Any advice? >> > > > If it's a `cgi' script, then you might need apache suexec. > If you have the ksh shell, try with suid_exec. > > -andrew > > > > -- end Respectfully, Kirk D Bailey +---------------------"Thou Art Free." -Eris-----------------------+ | http://www.howlermonkey.net mailto:highprimate@howlermonkey.net | | KILL spam dead! http://www.scambusters.org/stopspam/#Pledge | | http://www.tinylist.org +--------+ mailto:grumpy@tinylist.org | +------------------Thinking| NORMAL |Thinking----------------------+ +--------+ --------------------------------------------- Introducing NetZero Long Distance 1st month Free! Sign up today at: www.netzerolongdistance.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message