geteuid - get effective user identity
#include <unistd.h> #include <sys/types.h>
uid_t geteuid(void);
geteuid(2) returns the effective user ID of the current process.
The effective ID corresponds to the set ID bit on the file being executed. See EffectiveID for more information.
These functions are always successful.
POSIX, BSD 4.3.
setreuid(2), setuid(2), getuid(2), getegid(2)
7 pages link to geteuid(2):