Date: Thu, 3 Jan 2002 19:42:58 +0200 From: Yonatan Bokovza <Yonatan@xpert.com> To: 'Dave Raven' <dave@raven.za.net>, devin-freebsdquestions@rintrah.org Cc: freebsd-questions@freebsd.org Subject: RE: Setuid. Message-ID: <EB513E68D3F5D41191CA000255588101B436D2@mailserv.xpert.com>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Dave Raven [mailto:dave@raven.za.net] > Sent: Thursday, January 03, 2002 19:30 > To: devin-freebsdquestions@rintrah.org > Cc: freebsd-questions@freebsd.org > Subject: Re: Setuid. > > > Sorry, another follow up on my previous post: > > I cannot run the other program suid because it (the > actuall program) > check what user is running it, > and that will never be root. so, it needs to be called by root. > > Also, this is a perl program, so it calls perl. Does perl > not need to > run as suid root, considering > I'm actually running perl -w myprog.pl ?? > > Thanks again. A solution that might suit you is to break this into two programs: The perl script that would run as root (not SUID-root, I mean real root) will write the output to a predetermined file that the web program can read, and the web program can disperse it to whoever request. Like: perl -w perlscript.pl > /usr/local/www/data/perltempfile and read /usr/local/www/data/perltempfile with your web program. 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?EB513E68D3F5D41191CA000255588101B436D2>