getting the current userid with Python

Greg Fortune lists at gregfortune.com
Wed Aug 21 18:12:54 EDT 2002


In the os module documentation, 6.1.1 Process Parameters

geteuid() 
 Return the current process' effective user id. Availability: Unix. 


getuid() 
 Return the current process' user id. Availability: Unix. 


Same stuff exists for the group as well...




More information about the Python-list mailing list