Hello all,
First, dont hesitate to tell me if you think this post
belongs elsewhere.
I'm having trouble changing Real UID and Effective UID
with Perl 5.8 under
AIX 5.2.
I'm *not* trying to elevate the script's rights, I want to
*drop* rights
to an isolated user.. Same deal as httpd dropping from root
to run as nobody
or whatever you have configured. I want $> and $< to
both reflect the same
non-root value, while before the change both were at 0.
Searching on the web I can only find old (2002?) usenet
postings about
this, with someone mentionning that the AIX system calls
will allow changing
your Real UID only if you're starting from UID 0 and if you
change RUID and
EUID at the same time.
Any ideas / suggestions on how to do this from perl ?
The problem this is causing for us is that the perl
script, after
switching EUID from 0 to 207 (RUID stays 0), opens a pipe to
another perl
interpreter (to run a plugin) -- this new perl interpreter
sees $> != $< and
won't allow -M or -I to be used... any workarounds for this
??
Thanks!
Martin Richard
|