GETUID(2) Linux Programmer's Manual GETUID(2)NAME
getuid, geteuid - get user identity
SYNOPSIS
#include <unistd.h>
#include <sys/types.h>
uid_t getuid(void);
uid_t geteuid(void);
DESCRIPTION
getuid() returns the real user ID of the calling process.
geteuid() returns the effective user ID of the calling process.
When a normal program is executed, the effective and real user ID of the process are set to the ID of the user executing the file. When a
set ID program is executed the real user ID is set to the calling user and the effective user ID corresponds to the set ID bit on the file
being executed.
ERRORS
These functions are always successful.
CONFORMING TO
POSIX.1-2001, 4.3BSD.
NOTES
History
In Unix V6 the getuid() call returned (euid << 8) + uid. Unix V7 introduced separate calls getuid() and geteuid().
SEE ALSO getresuid(2), setreuid(2), setuid(2), credentials(7)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 1993-07-23 GETUID(2)
Check Out this Related Man Page
GETUID(2) Linux Programmer's Manual GETUID(2)NAME
getuid, geteuid - get user identity
SYNOPSIS
#include <unistd.h>
#include <sys/types.h>
uid_t getuid(void);
uid_t geteuid(void);
DESCRIPTION
getuid() returns the real user ID of the calling process.
geteuid() returns the effective user ID of the calling process.
ERRORS
These functions are always successful.
CONFORMING TO
POSIX.1-2001, 4.3BSD.
NOTES
History
In UNIX V6 the getuid() call returned (euid << 8) + uid. UNIX V7 introduced separate calls getuid() and geteuid().
The original Linux getuid() and geteuid() system calls supported only 16-bit user IDs. Subsequently, Linux 2.4 added getuid32() and
geteuid32(), supporting 32-bit IDs. The glibc getuid() and geteuid() wrapper functions transparently deal with the variations across ker-
nel versions.
SEE ALSO getresuid(2), setreuid(2), setuid(2), credentials(7)COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-11-22 GETUID(2)
Has anyone had any experience with this new processor and its compatability with Linux/Unix? How did it preform comared to regular Athlons and P4's?
I also have one other question. I plan on buying a new dell and fiddling left and right with it. Which type of RAM is better, RDRAM or... (3 Replies)
Link describe the Step by step formation of Unix
http://perso.wanadoo.fr/levenez/unix/
Also:
- History
- Author of First Unix C Language
- Unix Family research Tree
- BSD and Sun History chart
- Technical Comparison between Unix Diffrences (4 Replies)
Hi everyone!!! :D
I just want to say that I'm a new user of Unix, about 6 weeks. I'm taking a Programming and Logic course at a school in New York State, and we use Unix to operate Emacs, our code editor. I'm also taking a course called Unix Operating System. To be perfectly honest, I don't... (3 Replies)
Hey everyone! I'm new here. Anyways, I'm doing a project for my info tech class about operating systems, including Linux and Unix.
Can you guys dish me some info on what they're for and how they differ from Windows? It'd help me out a hella lot :D (2 Replies)
I am new to all this Unix & Linux things, can somebody please tell me, is there a diff between Linux and Unix , or is it the same thing ( Programs) ?
Thanks,
:o (4 Replies)
Hi ! Can C -langauge interface with Unix/Linux?
Currently i have written a application for SMS using C programing. I would like to know if i am able to receive information from Unix/Linux so that it can activate the application. (5 Replies)
Hi All,
Can anybody tell me, how to trace out user access to the Unix Server Machine, (i,e) I want to find out the user who had executed some commands to alter the cron file.
Regards
Nag (3 Replies)
I was wondering if someone could tell me where I could learn everything about Unix/Linux
and I was also wondering what the differance between Unix and Linux was :confused:
Ive never used it, never seen it.. But Im interested in learning :D (3 Replies)
Hello All,
I'm a new user to HP-Unix, Aix, Solaris. I know something about Linux. I would like to know, how many run levels are there in Unix, Aix & Solaris? As far as Linux is concerned, there are 7 run levels (0-6).
Can some body help me in this, with the brief... (5 Replies)
Hi All,
Is there a way to check command executed by users in Linux for a specific date? I know we can use history, but it doesn't shows yesterday's executed commands.
rgds, (3 Replies)
I'm learning off Linux (Ubuntu) right now. I want to move up to Unix, but I don't want to rush like I did when it came to Windows --> to Linux. What is the best Unix OS that fits in pretty well with Ubuntu.
In other words is there kind of an equal Linux with Unix?
Also what do I need to... (10 Replies)
I'm not that acquainted to C programming and would like to know how to obtain the internal Unix userid of a user (I'm on HP UX) and stro it in a variable.
I found the getuid() fonction returns the current user's internal ID. But I would like to find it for a different user. I was hoping... (7 Replies)