Looking at perlvar for $< and $>, it suggests that you may want to call POSIX::setuid() to set both in one call. Would that work for you? Or would simply setting both, $< and $> work for you, too?
or($<,$>)= ($run_as, $run_as);
use POSIX qw(setuid); setuid( $run_as );
In reply to Re: Running process as another user
by Corion
in thread Running process as another user
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |