Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36976
| References | <mailman.608.1358477462.2939.python-list@python.org> <50f8bd80$0$30003$c3e8da3$5496439d@news.astraweb.com> <mailman.609.1358481637.2939.python-list@python.org> <189d777e-33c7-4eb6-b301-e477f9122dee@googlegroups.com> |
|---|---|
| Date | 2013-01-18 17:36 +1100 |
| Subject | Re: [HELP!] a doubt about entering password in python |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.611.1358491013.2939.python-list@python.org> (permalink) |
On Fri, Jan 18, 2013 at 3:45 PM, Ramchandra Apte <maniandram01@gmail.com> wrote: > I think you are correct - su uses some tty magic to stop ECHO and probably doesn't read the password from stdin. I believe that's right, but the 'sudo' command - at least on my Debian and Ubuntu systems - accepts a -S parameter to read from stdin instead of the terminal. Actually, sudo might be better suited to the OP's task anyway, if it's available. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[HELP!] a doubt about entering password in python douxin <wq-doux@cn.fujitsu.com> - 2013-01-18 10:49 +0800
Re: [HELP!] a doubt about entering password in python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-18 03:12 +0000
Re: [HELP!] a doubt about entering password in python MRAB <python@mrabarnett.plus.com> - 2013-01-18 04:00 +0000
Re: [HELP!] a doubt about entering password in python Ramchandra Apte <maniandram01@gmail.com> - 2013-01-17 20:45 -0800
Re: [HELP!] a doubt about entering password in python Chris Angelico <rosuav@gmail.com> - 2013-01-18 17:36 +1100
Re: [HELP!] a doubt about entering password in python Ramchandra Apte <maniandram01@gmail.com> - 2013-01-17 20:45 -0800
csiph-web