Newbie: problem comparing values

Steven D. Majewski sdm7g at Virginia.EDU
Mon Oct 8 19:20:39 CEST 2001


On unix, you could also use:

	if os.getuid() == 0: 

to test for 'root'. 

or if you need the string:

	import pwd
	if pwd.getpwuid( os.getuid() )[0] == 'root' :


-- Steve Majewski






More information about the Python-list mailing list