From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp multi-hop on localhost: su:sudo Date: Tue, 26 May 2009 21:47:56 +0200 Message-ID: <87tz37wsr7.fsf@gmx.de> References: <20090518101805.GD26546@groll.co.za> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243367342 31056 80.91.229.12 (26 May 2009 19:49:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 19:49:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jonathan Groll Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 26 21:48:57 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M92ds-0002mR-8t for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 21:48:56 +0200 Original-Received: from localhost ([127.0.0.1]:58221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M92dr-0007Qk-O8 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 15:48:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M92dL-0007Fj-Fn for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:48:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M92dH-0007Cb-QX for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:48:23 -0400 Original-Received: from [199.232.76.173] (port=41129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M92dH-0007CU-Ip for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:48:19 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:35968) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M92dG-0004fE-Vi for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:48:19 -0400 Original-Received: (qmail invoked by alias); 26 May 2009 19:48:17 -0000 Original-Received: from brln-4db97343.pool.einsundeins.de (EHLO arthur.local) [77.185.115.67] by mail.gmx.net (mp011) with SMTP; 26 May 2009 21:48:17 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+Cb5gpFHKCOyzESii3MvkmYVvvkW0XTPassVY6Xy cZNHn7u2cWD1/3 In-Reply-To: <20090518101805.GD26546@groll.co.za> (Jonathan Groll's message of "Mon, 18 May 2009 12:18:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64740 Archived-At: Jonathan Groll writes: > On OS X (perhaps not unwarranted) I'm too afraid to let my regular > user have sudo rights, so if I want to edit a file as root, I need to > first su to another user account (that is in the sudoers file) and > then sudo to root. > > All works well except for tramp. I can su and edit files that belong > to another user, but still haven't worked out how to get multihop to > the root user working. > > I've read the manual, on other hosts I can use tramp multihop to first > ssh into another host and then sudo to root (eg. ubuntu boxes), but > still haven't managed to get the > su> sudo hop working on my mac. > > How do I do this? Is it possible even on the localhost? Same question: is it Tramp 2.1 you are using? > Many thanks, > Jonathan Best regards, Michael.