Re: trouble writing a setuid script
- From: Peter Michaux <petermichaux@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 05:58:30 -0700 (PDT)
On Aug 30, 1:20 am, magloca <magl...@xxxxxxxxxxxxxx> wrote:
Peter Michaux @ Saturday 30 August 2008 09:07:
Hi,
I'm trying to write a setuid script and can't make it happen. I've[code snipped]
trimmed it down to the very simple example below trying to have a
logger.pl script add a message to a log file. This is my Bash
transcript with all the pertinent details.
(I don't run into any errors when writing the same program in C.)
Yeah, I tried to do something like that once, too. Turned out the setuid
flag is ignored on scripts; it's only allowed on (binary) executables.
So that's also why your compiled C program works.
It seems it must be possible to write a setuid script because there is
a lot of fuss about it in "perldoc perlsec" which is also part of the
camel book.
Peter
.
- Follow-Ups:
- Re: trouble writing a setuid script
- From: Jürgen Exner
- Re: trouble writing a setuid script
- From: Grant
- Re: trouble writing a setuid script
- From: Joost Diepenmaat
- Re: trouble writing a setuid script
- References:
- trouble writing a setuid script
- From: Peter Michaux
- Re: trouble writing a setuid script
- From: magloca
- trouble writing a setuid script
- Prev by Date: Re: question about data structures - what does $# mean?
- Next by Date: FAQ 6.16 How can I do approximate matching?
- Previous by thread: Re: trouble writing a setuid script
- Next by thread: Re: trouble writing a setuid script
- Index(es):
Relevant Pages
|