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

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

Re: sudo and tramp ask for password twice


From: XeCycle
Subject: Re: sudo and tramp ask for password twice
Date: Sun, 06 May 2012 12:49:19 +0800
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> 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).

Don't know about the rest of your questions, but isn't sudo
method supposed to be used like `/sudo::/etc/conf'?

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

Attachment: pgpbVmOiBISHo.pgp
Description: PGP signature


reply via email to

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