0

有没有一种简单的方法可以查看正在运行的进程的真实、有效和保存的 UID 和 GID?

4

3 回答 3

1

psU, G(real) g, u(effective)一起使用?

于 2009-09-28T21:31:10.393 回答
1

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
于 2009-09-28T21:36:01.827 回答
1

The /proc filesystem contains this information:

/proc/PID/status

于 2009-09-28T21:37:51.370 回答