SUGGEST: os.getuser()

Donn Cave donn at oz.net
Thu Jan 20 00:54:22 EST 2000


[... re whether os.getuser() should look at $LOGNAME or /etc/passwd first ...]

I'm with Michael on this one, if LOGNAME has been manipulated by the
user then it's just as well if the program goes along with it.
Things like filesystem permissions should protect everyone from any
resulting mischief.  If not, it would be something like a setuid 
situation, where Python probably just doesn't belong altogether.

	Donn Cave, University Computing Services, University of Washington
	donn at u.washington.edu



More information about the Python-list mailing list