getpass

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lucas Raab

    getpass

    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!


  • Jorge Godoy

    #2
    Re: getpass

    "Lucas Raab" <lvraab@earthli nk.net> writes:
    [color=blue]
    > 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).[/color]

    I had the same problem you do.

    You can try using os.getlogin():
    [color=blue][color=green][color=darkred]
    >>> import os
    >>> print os.getlogin()[/color][/color][/color]
    godoy[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]


    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. <godoy@metalab. unc.edu>

    Comment

    Working...