getting the current userid with Python

Greg Fortune lists at gregfortune.com
Thu Aug 22 00:12:54 CEST 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