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 sudo or not sudo on remote server Date: Sun, 28 Aug 2011 19:51:25 +0200 Message-ID: <8762lha0gy.fsf@gmx.de> References: <87liufcf8y.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314553908 16137 80.91.229.12 (28 Aug 2011 17:51:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2011 17:51:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 28 19:51:44 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 1QxjWI-0003uz-B1 for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Aug 2011 19:51:42 +0200 Original-Received: from localhost ([::1]:51942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxjWC-0002tL-Jh for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Aug 2011 13:51:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxjW8-0002sD-5t for help-gnu-emacs@gnu.org; Sun, 28 Aug 2011 13:51:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxjW7-00015q-29 for help-gnu-emacs@gnu.org; Sun, 28 Aug 2011 13:51:32 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:56096) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QxjW6-00015L-KB for help-gnu-emacs@gnu.org; Sun, 28 Aug 2011 13:51:31 -0400 Original-Received: (qmail invoked by alias); 28 Aug 2011 17:51:27 -0000 Original-Received: from p57BB8D6E.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.141.110] by mail.gmx.net (mp040) with SMTP; 28 Aug 2011 19:51:27 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX186rsZoyoE6kjG3CnwjyWKfivnHjbZ2GhVnpDKIXo gw4gfSEaTXIG6S In-Reply-To: <87liufcf8y.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 27 Aug 2011 18:37:01 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:82082 Archived-At: Eric Abrahamsen writes: Hi, > The tramp manual explains how to access files as root on a remote > server, with a two-jump system, but there doesn't seem to be any way to > do this selectively: if I define a proxy, it seems to have me as root > for all files on that server. > > Is there anyway to define two different methods for the same server, one > that operates as my normal user and one that does a second jump to work > as root? There is no need to apply sudo for a normal user, you could always access via ssh like "/ssh:user@host:". This does not interfere with your proxy settings for root. > Thanks! > Eric Best regards, Michael.