Line | |
---|
1 | .\" Copyright (c) 1980 Regents of the University of California.
|
---|
2 | .\" All rights reserved. The Berkeley software License Agreement
|
---|
3 | .\" specifies the terms and conditions for redistribution.
|
---|
4 | .\"
|
---|
5 | .\" @(#)getuid.2 6.3 (Berkeley) 1/7/86
|
---|
6 | .\"
|
---|
7 | .TH GETUID 2 "January 7, 1986"
|
---|
8 | .UC 4
|
---|
9 | .SH NAME
|
---|
10 | getuid, geteuid \- get user identity
|
---|
11 | .SH SYNOPSIS
|
---|
12 | .nf
|
---|
13 | .ft B
|
---|
14 | #include <sys/types.h>
|
---|
15 | #include <unistd.h>
|
---|
16 |
|
---|
17 | uid_t getuid(void)
|
---|
18 | uid_t geteuid(void)
|
---|
19 | .fi
|
---|
20 | .SH DESCRIPTION
|
---|
21 | .B Getuid
|
---|
22 | returns the real user ID of the current process,
|
---|
23 | .B geteuid
|
---|
24 | the effective user ID.
|
---|
25 | .PP
|
---|
26 | The real user ID identifies the person who is logged in.
|
---|
27 | The effective user ID
|
---|
28 | gives the process additional permissions during
|
---|
29 | execution of \*(lqset-user-ID\*(rq mode processes, which use
|
---|
30 | \fBgetuid\fP to determine the real-user-id of the process that
|
---|
31 | invoked them.
|
---|
32 | .SH "SEE ALSO"
|
---|
33 | .BR getgid (2),
|
---|
34 | .BR setuid (2).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.