I seem to be having a problem finding the right tool in python. Given a username I want to find the uid for it. I can do the reverse very easily with:
pwd.getpwuid(2012)
This returns a tuple of data from the passwd file. But I want to do something like:
command(username)
And get something that returns the uid (the number).
Thanks
--
Pat Martin
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor