From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: tramp vs. sudo Date: Wed, 22 Jun 2011 12:22:22 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <877h8f80xk.fsf@gmx.de> <20110621131145.71028599@kuru.homelinux.net> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308738570 11196 80.91.229.12 (22 Jun 2011 10:29:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2011 10:29:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 22 12:29:26 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZKgX-0007A5-Oa for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2011 12:29:25 +0200 Original-Received: from localhost ([::1]:34990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZKgW-0005Kv-U0 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2011 06:29:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZKYl-0004II-0O for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 06:21:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZKYj-0002bG-19 for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 06:21:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZKYi-0002af-GH for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 06:21:20 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZKYb-0003Lo-C0 for help-gnu-emacs@gnu.org; Wed, 22 Jun 2011 12:21:13 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 12:21:13 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 12:21:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:cQpPsh1Nb3iA44fvntBzZm1J8e0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:81395 Archived-At: Suvayu Ali writes: > On Tue, 21 Jun 2011 21:00:23 +0200 > Michael Albinus 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