okay someone is learning an you posted a result that told them to keep looking... well i'm learning too and I pose the same question. Now if you would of answered the question to begin with, then I would have the answer as well.
this one was really easy to find, if you know how to search. learners should not learn static information but should learn how to find what they want on their own. this is especially important for programmers, because there is no manual and no forum that will tell you where to find the bug in your 1000 line program, you will have to do the bug hunting yourself. searching for easily detectable information in a limited set of lines is a good way to learn that. then consult the source file where this information is generated to verify your findings. if you don't want to do this, at least do "man proc" or read about proc in the files in linux/Documentation/.
To get the effective uid for a given process (let's say pid 2345), you can look at the file "/proc/2345/status". Under uid it will show four different ones. I believe , effective uid is the 2nd from the left side.
I guess you didn't look very
I guess you didn't look very hard then. Give it another try, and you might find something.
okay someone is learning an
okay someone is learning an you posted a result that told them to keep looking... well i'm learning too and I pose the same question. Now if you would of answered the question to begin with, then I would have the answer as well.
"learning"
this one was really easy to find, if you know how to search. learners should not learn static information but should learn how to find what they want on their own. this is especially important for programmers, because there is no manual and no forum that will tell you where to find the bug in your 1000 line program, you will have to do the bug hunting yourself. searching for easily detectable information in a limited set of lines is a good way to learn that. then consult the source file where this information is generated to verify your findings. if you don't want to do this, at least do "man proc" or read about proc in the files in linux/Documentation/.
To get the effective uid for
To get the effective uid for a given process (let's say pid 2345), you can look at the file "/proc/2345/status". Under uid it will show four different ones. I believe , effective uid is the 2nd from the left side.