in reply to Re: how to switch user
in thread how to switch user
unless ($UID) { $EUID = $unpriviledged_uid; $EGID = $unpriviledged_gid; } ...
Note that setting $EUID lets you act like the user, but on AIX at least it doesn't prevent you (or a child process you spawn) from resetting this back to zero and becomming root again, which can have security implications if you really want to run a child process unpriviledged. You can try setting $UID directly, but that isn't supported on some systems (e.g. AIX again).
bluto
|
|---|