[sudo-users] How to know real uid/gid?

Josef Wolf jw at raven.inka.de
Wed May 17 11:58:25 EDT 2006


Hello!

In a perl script, I want to drop privileges before doing anything
dangerous.  But unfortunately, sudo sets both, real and effective uid/gid.
How do I find out the real uid/gid to properly drop privileges?  Or does
sudo provide a different way to drop privileges?  I just can't imagine
that I'm the first one who wants to do something like this...




More information about the sudo-users mailing list