help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudo and tramp ask for password twice


From: Eric Abrahamsen
Subject: sudo and tramp ask for password twice
Date: Sun, 06 May 2012 12:33:07 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]