LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   uid and gid fileds from /proc/pid/status (https://www.linuxquestions.org/questions/linux-enterprise-47/uid-and-gid-fileds-from-proc-pid-status-595383/)

sanjaykhuntia 10-29-2007 02:34 AM

uid and gid fileds from /proc/pid/status
 
hi,

please reply me, how to interpret the uid and gid fields from /proc/pid/status file. because there are 4 columns showing in my RHEL 4 machine for each and i dnt understand which is the uid field. or all the 4 columns make the uid and gid fields.

do reply back.

thanks,
sanjay

farslayer 10-29-2007 10:47 PM

You have asked the same question basically 4 or 5 times now.. Please stick with a single thread and try to explain a little better what exactly you are trying to figure out..

If you don't get a response, please don't post the same questions (all about /proc/pid anyway...) over and over in new threads..

http://www.ncsa.uiuc.edu/UserInfo/Re...files/proc.htm

sieler 02-11-2011 01:35 PM

Re:
> please reply me, how to interpret the uid and gid fields from /proc/pid/status file.
> because there are 4 columns showing in my RHEL 4 machine for each and
> i dnt understand which is the uid field. or all the 4 columns make the uid and gid fields.

Although the question is old, I had the same problem recently (developing on an old RH system).
And, since the link posted (but not referred to) by farslayer is bad ...

On my (old) system, "man proc" did not document the Uid: and Gid: lines of /proc/#/status,
but the documentation is easily available on newer systems, and at
http://www.kernel.org/doc/man-pages/...n5/proc.5.html

In short:
Uid: real UID, effective UID, saved set UID, and file system UID
Gid: real GID, effective GID, saved set GID, and file system GID

Now the "old" question has an answer, so if/when people find it (as I did on 2011-02-11), they'll see an answer :)

Stan


All times are GMT -5. The time now is 12:18 AM.