I wasn't aware you could set the uid and gid through those vars... neat.
I've always used POSIX::setuid (and setgid). perlvar states that if $> = $uid or $< = $uid fails that it sets the $! to an appropriate error message. I'd look there.
$< = $> = 1000 or die "hrmph... silly perms or something: $!";
-Paul
In reply to Re: EUID cannot be set
by jettero
in thread EUID cannot be set
by 0xbeef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |