in reply to EUID cannot be set
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: EUID cannot be set
by 0xbeef (Hermit) on May 09, 2007 at 21:34 UTC | |
by mr_mischief (Monsignor) on May 10, 2007 at 20:19 UTC |