Re: trouble writing a setuid script



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
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.
[code snipped]
(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.
.



Relevant Pages

  • Re: running a script as the owner - admin bit - chmod 6774
    ... > the script can be forced to run as the file's owner. ... > with execute and read to the file I run it. ... With HP-UX 10.20 if there was a setuid script you wanted to exploit you could ...
    (comp.sys.hp.hpux)
  • Re: trouble writing a setuid script
    ... This is my Bash ... transcript with all the pertinent details. ... It seems it must be possible to write a setuid script because there is ...
    (comp.lang.perl.misc)
  • Re: trouble writing a setuid script
    ... This is my Bash ... transcript with all the pertinent details. ... It seems it must be possible to write a setuid script because there is ...
    (comp.lang.perl.misc)
  • Re: setuid shell scripts in Solaris 10
    ... Solaris 8 does not exhibit this behavior in our environment. ... The setuid script and any child scripts are ...
    (comp.unix.solaris)
  • Re: More before-the-fact advice for 2K and XP?
    ... > permission to change permission of the specific account, ... > login script to handle new profiles. ... Group Policy for XP lets you specify allow/deny for executables by path, ...
    (microsoft.public.security)