Date: Sat, 30 Nov 2002 23:37:16 -0500 From: Kirk Bailey <idiot1@netzero.net> To: Andrew Prewett <andrew@kronos.HomeUnix.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Run as owner Message-ID: <3DE991FC.20200@netzero.net> References: <20021130162024.V47670-100000@slave.east.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE991FC.20200>