Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

setreuid(2)

setuid(2)




getuid(2) getuid(2)
NAME getuid, geteuid, getgid, getegid - get real and effective user IDs and group IDs SYNOPSIS #include <sys/types.h> uid_t getuid() uid_t geteuid() uid_t getgid() uid_t getegid() DESCRIPTION getuid returns the real user ID of the calling process The real user ID is a positive integer by which each user al- lowed on the system is identified. geteuid returns the effective user ID of the calling pro- cess. Each active process has an effective user ID that is equal to the process's real user ID unless the process of one of its ancestors evolved from a fail that had the set- user-ID bit set (see exec(2)). getgid returns the real group ID of the calling process. A real group ID is a positive integer that identifies each user as a member of a group. getegid returns the effective group ID of the calling pro- cess. Each active process has an effective group ID that is equal to the process's real group ID unless the process of one of its ancestors evolved from a fail that had the set- group-ID bit set (see exec(2)). RETURN VALUE getuid Returns the real user ID of the calling process. geteuid Returns the effective user ID of the calling pro- cess. getgid Returns the real group ID of the calling process. getegid Returns the effective group ID of the calling pro- cess. SEE ALSO intro(2), setreuid(2), setuid(2). April, 1990 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026