Can I get the the UID of a given PID using C
Question
I want to get the user ID of a given process ID using C
How can I do it?
Any insight appreciated ;)
Solution
If you have the procfs
file system, then the effective user ID of the files in /proc/<pid>
are that of the user.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow