linux - Python retrieve RUID? -
i using version of python prior 2.7 on linux , wondering how retrieve ruid?
2.7 , later have getresuid the os package cant seem find equivalent 2.6
you can try use psutil
library. try uids
function:
uids()[source] real, effective , saved user ids of process namedtuple. same
os.getresuid()
can used every process pid.availability: unix
Comments
Post a Comment