0

Is there a way without using /proc or "ps" to know the uid of the parent process (or any other process) ?

I mean like getppid() but I need the UID.

Please don't answer with shell tricks or other language ways.

Zibri
  • 9,096
  • 3
  • 52
  • 44
  • It's not clear why you couldn't just combine `getppid` with e.g. the approach suggested here: https://stackoverflow.com/questions/18079449/is-there-a-system-call-for-obtaining-the-uid-gid-of-a-running-process. – Oliver Charlesworth Mar 24 '18 at 12:28
  • If you specify the operating system narrowly enough, there is probably a way. What is your operating system? – Arndt Jonasson Mar 24 '18 at 18:25

0 Answers0