COHERENT manpages
This page displays the COHERENT manpage for geteuid() [Get effective user identifier].
List of available manpages
Index
geteuid() -- System Call (libc) Get effective user identifier #include <unistd.h> geteuid() Every process has two different versions of its user id, called the real user id and the effective user id. The user ids determine eligibility to access files or employ system privileges. Normally, these two ids are identical. However, for a set user id load module (see exec), the real user id is that of the user, whereas the effective user id is that of the load module owner. This distinction allows system programs to use files which are protected from the user who invokes the program. geteuid() returns the effective user identifier Example For an example of this call, see the entry for getpwent(). See Also access(), exec, getegid(), getgid(), getuid(), libc, login, setuid(), unistd.h POSIX Standard, §4.2.1