getpass

Discussion in 'Python' started by Lucas Raab, Oct 12, 2003.

  1. Lucas Raab

    Lucas Raab Guest

    Could someone please demo the "getpass" module? I would like to use this,
    but have problems with it. Also, is there a way to have usernames other than
    through "pwd" (which I don't have because I have Win98).
    Thanks!
     
    Lucas Raab, Oct 12, 2003
    #1
    1. Advertising

  2. Lucas Raab

    Jorge Godoy Guest

    "Lucas Raab" <> writes:

    > Could someone please demo the "getpass" module? I would like to use this,
    > but have problems with it. Also, is there a way to have usernames other than
    > through "pwd" (which I don't have because I have Win98).


    I had the same problem you do.

    You can try using os.getlogin():

    >>> import os
    >>> print os.getlogin()

    godoy
    >>>



    On the other hand, the availability of the user on Win98 et al. seems
    to be due to the way its auth mechanism works.

    --
    Godoy. <>
     
    Jorge Godoy, Oct 12, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Salerno

    why does getpass() show the input?

    John Salerno, Aug 9, 2006, in forum: Python
    Replies:
    6
    Views:
    1,811
    John Salerno
    Aug 10, 2006
  2. How to fool getpass()

    , Aug 15, 2006, in forum: C Programming
    Replies:
    2
    Views:
    367
    jmcgill
    Aug 15, 2006
  3. Andrew

    getpass and IDEs

    Andrew, Feb 25, 2011, in forum: Python
    Replies:
    3
    Views:
    518
    Nobody
    Feb 26, 2011
  4. Yang Zhang

    getpass

    Yang Zhang, Apr 11, 2008, in forum: Ruby
    Replies:
    7
    Views:
    152
    Todd Benson
    Apr 13, 2008
Loading...

Share This Page