From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Groll Newsgroups: gmane.emacs.help Subject: Tramp multi-hop on localhost: su:sudo Date: Mon, 18 May 2009 12:18:05 +0200 Message-ID: <20090518101805.GD26546@groll.co.za> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: ger.gmane.org 1242641992 17691 80.91.229.12 (18 May 2009 10:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 10:19:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 18 12:19:45 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 1M5zwH-00072M-MK for geh-help-gnu-emacs@m.gmane.org; Mon, 18 May 2009 12:19:21 +0200 Original-Received: from localhost ([127.0.0.1]:38242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5zwC-00008G-2H for geh-help-gnu-emacs@m.gmane.org; Mon, 18 May 2009 06:19:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5zvC-00081U-VY for help-gnu-emacs@gnu.org; Mon, 18 May 2009 06:18:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5zv7-0007uj-M9 for help-gnu-emacs@gnu.org; Mon, 18 May 2009 06:18:14 -0400 Original-Received: from [199.232.76.173] (port=57700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5zv7-0007uY-BE for help-gnu-emacs@gnu.org; Mon, 18 May 2009 06:18:09 -0400 Original-Received: from mail.groll.co.za ([67.18.176.185]:52157) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5zv7-000745-18 for help-gnu-emacs@gnu.org; Mon, 18 May 2009 06:18:09 -0400 Original-Received: by mail.groll.co.za (Postfix, from userid 1004) id AA26B75741; Mon, 18 May 2009 12:18:05 +0200 (SAST) Content-Disposition: inline User-Agent: Mutt/1.5.18 (Linux mail 2.6.18.8-linode16 i686) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:64530 Archived-At: 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? Many thanks, Jonathan