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)
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)
Aside from the normal Linux distros, OS X, and the BSDs, what other forms of UNIX are there? I want to try one on a very old 75mhz box I have. Thanks in advance. (3 Replies)
Hi guys,
I never thought I'd be here. I've got my MCSE and I was a die hard Windows guy. I've been working with UNIX and Linux sense the middle of summer. I'm looking for server OSs. UNIX or Linux, preferribly the easier of the two. MY goal is to get UNIX and Linux into the company I work for... (3 Replies)
With so many different flavors of UNIX and Linux available in the world, choosing the best one for yourself, your family, or for your organization can be such an overwhelming and rather difficult decision to make! :eek:
If you were a salesman and you had to decide the best UNIX/Linux distro for... (1 Reply)
I was given this assignment and part of it was to mention firewalls available on UNIX(ex. solaris) and Linux plaforms.
First I would like to ask what is the difference between Unix and Linux. And also can please tell me firewalls are available on these platforms?
Thank you before hand. (1 Reply)
Hi.. I need to know the size in bytes of a webpage!!
For example I have this link The UNIX and Linux Forums - Learn UNIX and Linux from Experts and then...
URL u = new URL("https://www.unix.com");
There is any Java Class that can help me??
P.s.
sorry for my english... :D (6 Replies)
Hi,
I am working on a project where i can commit the project filles using UNIX commands. Without my awareness some body has changed and commited the project files with my login credentials. Now I want to know the UNIX command to find out the last 10(or) more IP addresses that uses my project... (4 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)
I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
We work hard to make The UNIX and Linux Forums one of the best UNIX and Linux knowledge sources on the net. The site is certainly one of the top UNIX and Linux Q&A sites on the web. In order to provide certain members the best quality account services, you can now get some great extra features by... (2 Replies)
I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX.
The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)