[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp vs. sudo
From: |
Richard Riley |
Subject: |
Re: tramp vs. sudo |
Date: |
Wed, 22 Jun 2011 12:22:22 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> On Tue, 21 Jun 2011 21:00:23 +0200
> Michael Albinus <michael.albinus@gmx.de> wrote:
>
>> > Its the same here. I just assumed thats how tramp behaves with
>> > sudo.
>>
>> I cannot reproduce it locally. I'm running Ubuntu 11.11, and I've
>> tested it with both Emacs 23.2 and 24.0.50, calling "emacs -Q" in
>> both cases.
>>
>> Could you, please, call Emacs the same way. *Before* you open
>> /sudo:root@localhost:/whatever you should eval
>>
>> (setq tramp-verbose 6)
>
> Strange, I can't reproduce this behaviour any more. It has been a long
> time since I used it last (AFAIR sometime in 2010).
I get prompted twice here when opening a local file as sudo.
e.g
(defun find-alternative-file-with-sudo ()
"Open current buffer as root!"
(interactive)
(when buffer-file-name
(find-alternate-file
(concat "/sudo:root@localhost:"
buffer-file-name))))
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11
on raven, modified by Debian
- tramp vs. sudo, Neal Becker, 2011/06/21
- Re: tramp vs. sudo, suvayu ali, 2011/06/21
- Re: tramp vs. sudo, Michael Albinus, 2011/06/21
- Re: tramp vs. sudo, Suvayu Ali, 2011/06/21
- Re: tramp vs. sudo,
Richard Riley <=
- Re: tramp vs. sudo, Michael Albinus, 2011/06/23
- Re: tramp vs. sudo, Neal Becker, 2011/06/23
- Re: tramp vs. sudo, Neal Becker, 2011/06/24
- Re: tramp vs. sudo, Michael Albinus, 2011/06/24