$SUDO_UID contains the UID of the process that called sudo , $SUDO_GID contains the GID, and $SUDO_USER contains the username. To fully complement these, sudo should also set environment variables containing:
- The group name corresponding to the GID that a process calls
sudo with.
- The supplementary GIDs of the calling process.
- The group names corresponding to the supplementary GIDs.