getuid(2) getuid(2)
getuid, geteuid, getgid, getegid - get real user, effective user, real
group, and effective group IDs
#include <sys/types.h>
#include <unistd.h>
uid_t getuid (void);
uid_t geteuid (void);
gid_t getgid (void);
gid_t getegid (void);
getuid returns the real user ID of the calling process.
geteuid returns the effective user ID of the calling process.
getgid returns the real group ID of the calling process.
getegid returns the effective group ID of the calling process.
intro(2), setuid(2)
PPPPaaaaggggeeee 1111 [ Back ]
|