| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 2: System Calls Oracle Solaris 11 Information Library |
- get real user, effective user, real group, and effective group IDs
#include <sys/types.h>#include <unistd.h>uid_tgetuid(void);
uid_tgeteuid(void);
gid_tgetgid(void);
gid_tgetegid(void);
Thegetuid() function returns the real user ID of the calling process.The real user ID identifies the person who is logged in.
Thegeteuid() function returns the effective user ID of the calling process.The effective user ID gives the process various permissions during execution of“set-user-ID” mode processes which usegetuid() to determine the real userID of the process that invoked them.
Thegetgid() function returns the real group ID of the calling process.
Thegetegid() function returns the effective group ID of the calling process.
Seeattributes(5) for descriptions of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |