Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ geteuid(2) — A/UX 3.0.1

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 allowed on the system is identified. geteuid returns the effective user ID of the calling process. 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 process. 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)). STATUS MESSAGES AND VALUES 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. SEE ALSO intro(2), setreuid(2), setuid(2) January 1992 1

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