michael montagne wrote: > > First off, I'm a newbie at Python. > I'm trying to return the user who is logged on at a PC. What I really need > is the login name. How do I do that? Seems like it otta be quite simple > but I'm having trouble. > > -mjm ..and finally import getpass username = getpass.getuser() works on both systems (NT,UNIX), if you need.