[H-GEN] Setting a Perl script suid

Sarah Walters sarah at uow.edu.au
Wed Sep 10 02:44:50 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Hi Paul,

On 10 Sep 2003 Paul Cornford <cbecwd at bigpond.com> wrote:
> I am trying to run a perl script SUID and whenever I try "perl -cw
> <scriptname>' all I get is "Args must match #! at auction.pl line 1" -
> which is true. I don't add the -c arg to my first line. But if I make
> the args the same I get "Can't do setuid". I know running Perl scripts
> SUID is tricky but does anyone know how I can do this? The script is
> actually being run as a CGI (locally).

I'm fairly sure you can't run CGI scripts setuid at all. There are
protections built into apache to stop this. Why would you want to?

-- 
Mrs Sarah Walters
Systems Group
Information Technology Services
University of Wollongong
Phone: +61 2 4221 3775


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list