in reply to Re: An odd failure of setuid(0)
in thread An odd failure of setuid(0)

Oh, sorry. setuid() is from POSIX.pm.  I omitted the script header, which includes "use POSIX qw(setuid);"

I actually think maybe I shot myself in the foot here by trying to do setuid operations that were probably unnecessary since I was already running with setuid/setgid bits.  A case of overthinking the problem.

Replies are listed 'Best First'.
Re^3: An odd failure of setuid(0)
by shmem (Chancellor) on Jun 26, 2006 at 01:02 UTC
    Including all relevant parts of a script is always a good idea.. ;-)

    cheers,
    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}