On 8/24/06, John Ackley <[EMAIL PROTECTED]> wrote:
Subject: sssh bang problem
Cool. It's been a long time since we've gotten a problem with sound effects.
# perl -c plot.cgi
Args must match #! line at plot.cgi line 1.
This message is covered in perldiag:
(F) The setuid emulator requires that the arguments Perl was
invoked with match the arguments specified on the #! line.
Since some systems impose a one-argument limit on the #! line,
try combining switches; for example, turn -w -U into -wU.
When you run a set-id program, you can't give perl arbitrary command
line flags, because many of those flags would change the meaning of
the program against the wishes of the program's owner.
where did I go astray?
What are you trying to do with -c? That's used to check (but not run)
the program; but you're talking about running the program for real,
right? If you just want to check it with -c, you'll need to take off
the set-id bit (or simply check it as the owner).
script is owned by root with suid set
-rwsr-sr-x 1 root wheel 5415 Aug 24 11:42 plot.cgi
Ooh, that can be dangerous. Will nothing less than root suffice? I
hope you know what you're doing.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>