From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: sudo command with minibuffer password prompt Date: Thu, 17 Dec 2009 07:22:48 +0100 Organization: ThierryVolpiatto Message-ID: <876386xgp3.fsf@tux.homenetwork> References: <20091216170829.14846AF606@mxperim7.sea5.speakeasy.net> <20091217023943.GI1038@srevilak.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261031378 21623 80.91.229.12 (17 Dec 2009 06:29:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2009 06:29:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 17 07:29:32 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NL9re-0002nZ-UH for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Dec 2009 07:29:31 +0100 Original-Received: from localhost ([127.0.0.1]:49062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL9re-0008Ul-2t for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Dec 2009 01:29:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NL9r0-0008Tj-9L for help-gnu-emacs@gnu.org; Thu, 17 Dec 2009 01:28:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NL9qv-0008Mj-38 for help-gnu-emacs@gnu.org; Thu, 17 Dec 2009 01:28:49 -0500 Original-Received: from [199.232.76.173] (port=60834 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL9qu-0008MW-UR for help-gnu-emacs@gnu.org; Thu, 17 Dec 2009 01:28:44 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:48181) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NL9qu-0005TR-Hv for help-gnu-emacs@gnu.org; Thu, 17 Dec 2009 01:28:44 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NL9qp-0002Zv-Us for help-gnu-emacs@gnu.org; Thu, 17 Dec 2009 07:28:39 +0100 Original-Received: from 6.77.197-77.rev.gaoland.net ([77.197.77.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2009 07:28:39 +0100 Original-Received: from thierry.volpiatto by 6.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2009 07:28:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 6.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== Cancel-Lock: sha1:lVzBCpn8ZqmnEoK/4rZ+EOFXukc= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70688 Archived-At: Hi, if you are an anything user you will find in anything-config.el sources to manage apt-* from emacs. http://www.emacswiki.org/cgi-bin/emacs/Anything Steve Revilak writes: >>From: Nordl?w > >>In both Vanilla Emacs 22 and 23 CVS >> (require 'tramp) >> (shell-command "sudo touch ~/.emacs") >>fails with the message >> sudo: no tty present and no askpass program specified >> >>What is missing? > > Using M-! and typing "sudo ls" into the minibuffer, I see the same > error message with Emacs 23.1.1 on OpenSuse. Mac OS X displays a > password prompt in the minibuffer, but the password prompt doesn't > seem to accept focus (emacs 22 and 23). > >>What I really want to do is to spawn an install using apt-get install >>from within emacs. > > Try this. > > M-x shell > > Then run "sudo apt-get install" from the *shell* buffer. You should > get a password prompt in the minibuffer. > > (FWIW, I thought this was one of the neatest additions in Emacs 22 :) > > Steve > -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France