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
In reply to Re^2: Setuid script not working
by druidmatrix
in thread Setuid script not working
by druidmatrix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |