tags:

views:

189

answers:

3

Is there a simple way to see the real,effective and saved UID and GID for a running process?

+1  A: 

Using ps with either U, G (real) g, u (effective)?

mfloryan
+1  A: 

Did a quick read of the man page for ps. The following worked for me:

ps axo pid,ruid,euid,fuid,rgid,egid,fgid,ucmd | more
Langley
+1  A: 

The /proc filesystem contains this information:

/proc/PID/status

ennuikiller