|
|
1.1 root 1: .TH GETUID 2 "12 February 1983"
2: .UC 4
3: .SH NAME
4: getuid, geteuid \- get user identity
5: .SH SYNOPSIS
6: .ft B
7: .nf
8: uid = getuid()
9: int uid;
10: .PP
11: .ft B
12: euid = geteuid()
13: int euid;
14: .fi
15: .SH DESCRIPTION
16: .I Getuid
17: returns the real user ID of the current process,
18: .I geteuid
19: the effective user ID.
20: .PP
21: The real user ID identifies the person who is logged in.
22: The effective user ID
23: gives the process additional permissions during
24: execution of \*(lqset-user-ID\*(rq mode processes, which use
25: \fIgetuid\fP to determine the real-user-id of the process which
26: invoked them.
27: .SH "SEE ALSO"
28: getgid(2), setreuid(2)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.