From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: remote file editing over ssh with emacs 22.3.1 on Windows Date: Mon, 11 May 2009 23:18:00 +0200 Organization: Freie Universitaet Berlin Message-ID: <87fxfbibjr.wl%anselm.helbig+news2009@googlemail.com> References: <4A02A04F.6010307@simplistix.co.uk> <83hbzwdazt.fsf@gnu.org> <0F841C30-5A42-4F96-95CE-49FA51BDBDB6@digg.com> <4A04A18F.2020404@simplistix.co.uk> <833abedact.fsf@gnu.org> <4A0543A3.9000007@simplistix.co.uk> <83y6t6bp8l.fsf@gnu.org> <4A05C052.10607@simplistix.co.uk> <83bpq2ytya.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1242078044 3554 80.91.229.12 (11 May 2009 21:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 21:40:44 +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 11 23:40:34 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 1M3dEe-0001js-Ko for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 23:40:32 +0200 Original-Received: from localhost ([127.0.0.1]:44195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3dEe-0004mJ-45 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 17:40:32 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: news.uni-berlin.de 422bPaffCIjRRQC5Zz4k+wdrAQ+f5NzidCJ+MWiLKCfB148ECiLNyGsDmn Cancel-Lock: sha1:z2Zu/EWJOhk6rjujD9jTLGXSDlc= In-Reply-To: Mail-Followup-To: anselm.helbig+news2009@googlemail.com User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) Original-Xref: news.stanford.edu gnu.emacs.help:169088 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:64352 Archived-At: At Sun, 10 May 2009 09:37:48 +0100, Chris Withers wrote: > > Eli Zaretskii wrote: > >> What do I actually type to sudo to a different user when opening a file > >> on a remote system? > > > > C-x C-f /sudo:USER@MACHINE:/PATH/TO.FILE RET > > > > Or > > > > (setq tramp-default-method "sudo") > > C-x C-f /USER@MACHINE:/PATH/TO.FILE RET > > Hmmm, okay, I only see one username here. How do I specify the username > to connect as and then the username to sudo to? You do it something like this: (add-to-list 'tramp-default-proxies-alist '("\\`host.example.com\\'" nil "/ssh:remoteuser@%h:")) And then C-x C-f /sudo:privilegeduser@host.example.com:/ HTH, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com