The user is prompted using the string prompt, which defaults to 'Password: ' . (/ dev/tty) or if that is unavailable to sys.stderr (this argument is ignored on Windows ). If none are set, the login name from the password database is returned on .