Python os.getresuid() Method
Example
Find the real, effective, and saved user ids of the current process:
#Import os Library
import os
# Print the current process's real, effective and saved user id
print (os.getresuid())
Try it Yourself »
Definition and Usage
The os.getresuid()
method returns the
current process' real, effective, and saved user ids, as a tuple.
Note: Only available on UNIX systems.
Syntax
os.getresuid()
Technical Details
Return Value: | A tuple (ruid, euid, suid), representing
the current process' real, effective, and saved user ids |
---|---|
Python Version: | 3.2 |