How can I tell if a given login exists in my Linux box, using Python?
Posted
by Elifarley
on Stack Overflow
See other posts from Stack Overflow
or by Elifarley
Published on 2010-03-29T18:54:02Z
Indexed on
2010/03/29
19:03 UTC
Read the original article
Hit count: 108
In Python under Linux, what is the easiest way to check the existence of a user, given his/her login?
Anything better than issuing 'ls ~login-name' and checking the exit code?
And if running under Windows?
© Stack Overflow or respective owner