in reply to Re: Setuid script not working
in thread Setuid script not working
Thank you for your response. I looked for $! and sure enough it is populated, but does not explain why it failed.
It now produces:$< = $> = 0; print "Could not setuid ".$<." error: $! \n" if ($<); POSIX::setuid(0) if ($<); print "Posix could not setuid either ".$<." error: $! \n" if ( +$<);
Could not setuid 500 error: Operation not permitted Posix could not setuid either 500 error: Operation not permitted
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Setuid script not working
by Anonymous Monk on Apr 30, 2010 at 07:03 UTC | |
by afoken (Chancellor) on Apr 30, 2010 at 07:51 UTC | |
by ikegami (Patriarch) on Apr 30, 2010 at 21:12 UTC | |
by druidmatrix (Acolyte) on Apr 30, 2010 at 07:53 UTC | |
by Anonymous Monk on Apr 30, 2010 at 08:44 UTC | |
by druidmatrix (Acolyte) on Apr 30, 2010 at 08:50 UTC |