[sudo-users] How to know real uid/gid?
Matthew Hannigan
mlh at zip.com.au
Thu May 25 05:36:58 EDT 2006
On Thu, May 25, 2006 at 09:52:47AM +0200, Josef Wolf wrote:
> I've seen no replies yet to this mail. Does this mean that there is
> no way to find out the real uid/gid of the user who called the command?
You've got env vars SUDO_UID and SUDO_GID ...
So I guess you can set[ug]id to those if you wanted to 'drop'
privs. Be careful that they're not tainted though.
Matt
More information about the sudo-users
mailing list