Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Process ownerby mortis (Pilgrim) |
on Dec 15, 2001 at 03:27 UTC ( [id://132125]=note: print w/replies, xml ) | Need Help?? |
(Under Unix) I'd think $< (UID) and $> (EUID) are what
you really want.
man perlvar has some more to say on the subject, as should man setuid on your (Unix) system. EUID is what you can effectivly do - if you're EUID is root (0), you can set your UID. If it's not, you can't. Your paren't process can effect your UID before you're execed, but once you're execed, you've got your UID/EUID (and GID/EGID) for the remaining lifetime of your process.
In Section
Seekers of Perl Wisdom
|
|