From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: sudo and tramp ask for password twice
Date: Sun, 06 May 2012 14:21:35 +0800 [thread overview]
Message-ID: <87ehqx96ds.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87397drk1c.fsf@xc.laptop
On Sun, May 06 2012, XeCycle wrote:
> 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'?
Ha, I guess you're right. When I type /sudo:: at the prompt, ido tells
me the next completion is "localhost:", but if I ignore that and just
enter my path, it works fine -- only one password prompt.
I guess I thought ido was showing me something important about tramp
internals, something I didn't know before, but maybe it wasn't really
that helpful…
Thanks!
--
GNU Emacs 24.1.50.3 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2012-05-01 on pellet
next prev parent reply other threads:[~2012-05-06 6:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-06 4:33 sudo and tramp ask for password twice Eric Abrahamsen
2012-05-06 4:49 ` XeCycle
2012-05-06 6:21 ` Eric Abrahamsen [this message]
2012-05-06 11:06 ` Michael Albinus
2012-05-07 1:40 ` Eric Abrahamsen
2012-05-06 11:10 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehqx96ds.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).