in reply to change process's effective uid
Ahh yes. Wise question Anonymous One. Perl is far beyond using function calls for this. Why use function calls when we have variables like $< and $> ?!?!
---
crulx
crulx@iaxs.net
$< or $UID
"The real user ID of this process."
$>
$EUID
"The effective uid of this process"
Thus speaks the Holy Camel Book of Knowledge Light of the World.
so...
Obviously, these require you to be running setuid.Go and rejoice in your new learning.$< = $> #set real to effective uid ($<,$>) = ($>,$<); #swap real and effective uid
---
crulx
crulx@iaxs.net
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: change process's effective uid
by sierrathedog04 (Hermit) on Feb 11, 2001 at 00:28 UTC |
In Section
Seekers of Perl Wisdom