简体   繁体   中英

find effective id euid for process with pid=<some number>

How to find euid of a process if I know its pid I tried I get process id using :

ps -f -u user1

then I tried ps aux , ps -ef with grep pid but can not see euid

I always try to get info from man pages but man ps seems too confusing for a newbie like me.

You are looking for the ps option: -o euid

Examples:

  • Display a pid's euid

    ps -eo pid,euid | grep YOUR_PID_HERE

  • Display a pid's euid, ruid and suid

    ps -eo pid,euid,ruid,suid | grep YOUR_PID_HERE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM