[Python-Dev] [OT] Re: getpass and stdin

Mike Meyer mwm at mired.org
Tue Feb 26 22:01:06 CET 2008


On Tue, 26 Feb 2008 15:32:03 -0500 "Leif Walsh" <adlaiff6 at gmail.com> wrote:
> On Tue, Feb 26, 2008 at 2:14 PM, Shaya Potter <spotter at cs.columbia.edu> wrote:
> > 1) I am willing to type in the password, which is obvious to anyone who
> > can read a simple script.  That just doesn't work for a program you want
> > to run in the background to type it in every time.
> 
> I recommend you just hack on this getmail program and give it a daemon
> mode.  That shouldn't be too large of a task, and it will certainly be
> more secure (and you can even commit your changes as a new feature!).
> Otherwise, your best bet is probably, as Charles said, making the
> passfile work for you (maybe play with nfs and see if you can get it
> to hide things...I'm no wizard with it, but I'm willing to bet it's
> possible).

Actually, the easiest thing is probably to use a "file" that's not
really a file, like /dev/stdin or <(cat -),

      <mike

-- 
Mike Meyer <mwm at mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.


More information about the Python-Dev mailing list