*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> getuid (2)              



NAME    [Toc]    [Back]

       getuid, geteuid - get user identity

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>
       #include <sys/types.h>

       uid_t getuid(void);
       uid_t geteuid(void);

DESCRIPTION    [Toc]    [Back]

       getuid returns the real user ID of the current process.

       geteuid returns the effective user ID of the current process.

       The  real  ID corresponds to the ID of the calling process.  The effective
 ID corresponds to the set ID bit on the file being executed.

ERRORS    [Toc]    [Back]

       These functions are always successful.

CONFORMING TO    [Toc]    [Back]

       POSIX, BSD 4.3.

SEE ALSO    [Toc]    [Back]

       setreuid(2), setuid(2)

Linux 0.99.11			  1993-07-23			     GETUID(2)
[ Back ]
 Similar pages
Name OS Title
setuid Linux set user identity
id FreeBSD return user identity
autologin IRIX set autologin user identity
su OpenBSD substitute user identity
id OpenBSD return user identity
su FreeBSD substitute user identity
setfsuid Linux set user identity used for file system checks
satgetid IRIX get or set audit identity
setgid Linux set group identity
getgid Linux get group identity
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service