Re: trouble writing a setuid script
- From: magloca <magloca@xxxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 10:20:30 +0200
Peter Michaux @ Saturday 30 August 2008 09:07:
Hi,[code snipped]
I'm trying to write a setuid script and can't make it happen. I've
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.
m.
.
- Follow-Ups:
- Re: trouble writing a setuid script
- From: Peter Michaux
- Re: trouble writing a setuid script
- References:
- trouble writing a setuid script
- From: Peter Michaux
- trouble writing a setuid script
- Prev by Date: trouble writing a setuid script
- Next by Date: Re: subprocesses lifecycle
- Previous by thread: trouble writing a setuid script
- Next by thread: Re: trouble writing a setuid script
- Index(es):
Relevant Pages
|