Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36976
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'subject:password': 0.05; 'parameter': 0.07; 'accepts': 0.09; 'subject:python': 0.11; 'echo': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'stdin': 0.16; 'sudo': 0.16; 'tty': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'task': 0.23; 'command': 0.24; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'correct': 0.28; 'received:209.85.212': 0.28; 'probably': 0.29; 'fri,': 0.30; 'ubuntu': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'available.': 0.37; 'uses': 0.37; 'received:209': 0.37; 'some': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'think': 0.40; 'believe': 0.69; 'suited': 0.71; '2013': 0.84; 'actually,': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=a+tCWeM/23UXVNnbICG1DlREFGzR52YS76pUn/BoYa0=; b=ZkQhec+MgK4V5+ff6gS6/hiMurK6Yz2C53CZs8E1eWRH4/BCaqcbntAwz6ALHllBt1 jN6EH8SIggXJqL4rDdXF76feg4b/GrTCDLrm3k5CqxuT510+8L3wL9Yg619ZF9AOFuLy If0JFudu7pBY/+/+y34yXNAUVsXc3QakVGCDE5QFQKXD0NEQbCYf/LdN4LbWp1e0Z0Uo fRD8Nir3ocBHs3Pv/q7FpzQ3dbeVSNa2reQ5jCCRjuv/ggTLfQLiHyExMAGam8FPz8j1 S653s8hkuSe2AEdLDEYri10gBm3lUvIxZAvfjEVcZ31YX6WzbC25kGmke5Vl61rzGLIw 8CsQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.29.40 with SMTP id g8mr7432957vdh.58.1358491010682; Thu, 17 Jan 2013 22:36:50 -0800 (PST) |
| In-Reply-To | <189d777e-33c7-4eb6-b301-e477f9122dee@googlegroups.com> |
| 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 | Fri, 18 Jan 2013 17:36:50 +1100 |
| Subject | Re: [HELP!] a doubt about entering password in python |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.611.1358491013.2939.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1358491013 news.xs4all.nl 6842 [2001:888:2000:d::a6]:41998 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36976 |
Show key headers only | View raw
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