in reply to Running process as another user
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 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running process as another user
by morgon (Priest) on May 14, 2014 at 09:51 UTC | |
by Corion (Patriarch) on May 14, 2014 at 11:45 UTC | |
by morgon (Priest) on May 14, 2014 at 15:14 UTC |