From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: remote file editing over ssh with emacs 22.3.1 on Windows Date: Sun, 10 May 2009 20:29:16 +0300 Message-ID: <83ab5kzx1v.fsf@gnu.org> 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> <4A06925C.8020201@simplistix.co.uk> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1241976611 9646 80.91.229.12 (10 May 2009 17:30:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2009 17:30:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 19:30:01 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 1M3Cqf-00010C-EM for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 19:30:01 +0200 Original-Received: from localhost ([127.0.0.1]:44692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3Cqe-0007iW-Te for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 13:30:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3Cq5-0007dE-G5 for help-gnu-emacs@gnu.org; Sun, 10 May 2009 13:29:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3Cq4-0007ce-Dz for help-gnu-emacs@gnu.org; Sun, 10 May 2009 13:29:24 -0400 Original-Received: from [199.232.76.173] (port=53140 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3Cq4-0007cZ-4z for help-gnu-emacs@gnu.org; Sun, 10 May 2009 13:29:24 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:10372) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3Cq3-0001HE-Mh for help-gnu-emacs@gnu.org; Sun, 10 May 2009 13:29:23 -0400 Original-Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KJF00A00V73S500@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Sun, 10 May 2009 20:29:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.73.80]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KJF000Z0V8R6XC0@i-mtaout7.012.net.il> for help-gnu-emacs@gnu.org; Sun, 10 May 2009 20:29:15 +0300 (IDT) In-reply-to: <4A06925C.8020201@simplistix.co.uk> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:64324 Archived-At: > Date: Sun, 10 May 2009 09:37:48 +0100 > From: Chris Withers > CC: help-gnu-emacs@gnu.org > > 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? Not with this method. Sorry, it seems I misunderstood what you are after.