[H-GEN] Setting a Perl script suid
Paul Cornford
cbecwd at bigpond.com
Wed Sep 10 02:55:25 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Wed, 2003-09-10 at 16:44, Sarah Walters wrote:
[ 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?
Because after hours of unrewarded effort I can't seem to access the Perl
modules I need without it. Yes I've tried adding to @INC, and I've tried
'use lib ...' but these haven't worked. However, I did manage to run the
script on my own machine at home successfully SUID, and since the script
is for internal use only it seems the only way to go. Clearly my
understanding of permissions is lacking but the time factor has beaten
me for further study.
--
Paul Cornford
Web Programmer
Caboolture Business Enterprise Centre
39 Aerodrome Rd, Caboolture. 4510
Ph. 0754 991763
--
* 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