From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: sudo and tramp ask for password twice Date: Sun, 06 May 2012 12:33:07 +0800 Message-ID: <87lil6q67w.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336278847 2231 80.91.229.3 (6 May 2012 04:34:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 May 2012 04:34:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 06 06:34:06 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQtAc-0005vv-DS for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2012 06:34:06 +0200 Original-Received: from localhost ([::1]:35597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQtAb-0006gv-OY for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2012 00:34:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQtAW-0006gh-Ex for help-gnu-emacs@gnu.org; Sun, 06 May 2012 00:34:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQtAU-0004kd-OZ for help-gnu-emacs@gnu.org; Sun, 06 May 2012 00:34:00 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQtAU-0004gW-HE for help-gnu-emacs@gnu.org; Sun, 06 May 2012 00:33:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQtAP-0005nq-P4 for help-gnu-emacs@gnu.org; Sun, 06 May 2012 06:33:53 +0200 Original-Received: from 114.250.114.151 ([114.250.114.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2012 06:33:53 +0200 Original-Received: from eric by 114.250.114.151 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2012 06:33:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.114.151 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-Pgp-Key: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xC98BAE7B99D0D373 X-Pgp-Fingerprint: 8E19 28A9 2B51 0C67 565D DB34 C98B AE7B 99D0 D373 Cancel-Lock: sha1:YbY+J4waDeQut6a4IeQsCCgSyiI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84731 Archived-At: Hi there, I'm using tramp in emacs24, and have a small question about sudo. First of all, I'm using ido-everywhere, so when I want to open a file I hit "C-x C-f", then two forward slashes to get to the filesystem root. Then it's "sudo:". At this point ido gives me three choices: Find file: /sudo:{ . | localhost: | root@} Going through "root@" just leads another "localhost", so there doesn't seem to be any difference there. Is there? I suppose that's what I'd use if I wanted to access files as a different user altogether. So I choose localhost, then go for the file I want. Tramp asks me for my password once when I choose localhost, and then again the next time it needs to touch the filesystem (since I'm using ido, that means the first time it starts completing filepaths). Is there any way I can have it ask just once? Am I using it incorrectly? Relevant settings: --8<---------------cut here---------------start------------->8--- (ido-auto-merge-delay-time 1) (ido-auto-merge-work-directories-length 0) (ido-create-new-buffer (quote always)) (ido-enable-flex-matching t) (ido-everywhere t) (ido-file-extensions-order (quote (".org" ".py" ".el" ".html" ".org_archive"))) (ido-ignore-buffers (quote ("\\` " "/ssh"))) (ido-max-work-directory-list 10) (ido-mode (quote both) nil (ido)) (ido-read-file-name-non-ido (quote (mm-save-part))) (ido-record-ftp-work-directories nil) (ido-show-dot-for-dired t) (ido-use-filename-at-point (quote guess)) (ido-use-url-at-point nil) (ido-use-virtual-buffers nil) (ido-work-directory-list-ignore-regexps (quote ("/sudo:" "/scp"))) (mingus-use-ido-mode-p t) (org-completion-use-ido t) (tramp-default-method "scp") --8<---------------cut here---------------end--------------->8--- Thanks! Eric -- GNU Emacs 24.1.50.3 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-05-01 on pellet