From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Withers Newsgroups: gmane.emacs.help Subject: Re: remote file editing over ssh with emacs 22.3.1 on Windows Date: Mon, 25 May 2009 16:50:51 +0100 Message-ID: <4A1ABE5B.2000608@simplistix.co.uk> 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> <616ABE37-83DE-43D4-A4CA-FE18AD9A3063@Web.DE> <4A05C5FE.20900@simplistix.co.uk> <87d4a87aml.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243268319 18120 80.91.229.12 (25 May 2009 16:18:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 16:18:39 +0000 (UTC) Cc: Emacs Help To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 25 18:18:32 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 1M8csf-0004KW-Mq for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2009 18:18:29 +0200 Original-Received: from localhost ([127.0.0.1]:36830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8csf-0004S7-2c for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2009 12:18:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8cRz-0001Wi-4X for help-gnu-emacs@gnu.org; Mon, 25 May 2009 11:50:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8cRx-0001TB-Fz for help-gnu-emacs@gnu.org; Mon, 25 May 2009 11:50:54 -0400 Original-Received: from [199.232.76.173] (port=58244 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8cRw-0001Sd-Mx for help-gnu-emacs@gnu.org; Mon, 25 May 2009 11:50:52 -0400 Original-Received: from server1.simplistix.co.uk ([89.151.125.140]:55504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8cRw-0004PY-7P for help-gnu-emacs@gnu.org; Mon, 25 May 2009 11:50:52 -0400 Original-Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id 96F3A4F8075; Mon, 25 May 2009 16:50:51 +0100 (BST) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87d4a87aml.fsf@lion.rapttech.com.au> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64700 Archived-At: Tim X wrote: > 1. You use tramp to edit files remotely as a normal user Onec Emacs 23 becomes stable, I hope to, yes. > 2. sometimes, you need to edit a remote file that requires root privs. often, not sometimes, but also not always. > 3. You cannot ssh to the remote host as root correct. > There are two possible solutions I can think of. The first is a type of > tramp multi-hop connection method. i.e. from the manual > > Opening `/sudo:randomhost.your.domain:' would connect first > `randomhost.your.domain' via `ssh' under your account name, What is "my account name"? How do I use a different name? > For this to work, you would need to have sudo configured on the remote > host. sudo is how I become root ;-) (I don't like knowing root passwords...) > The second method involves taking advantage of X11. The remote servers > don't need full X11 support for this to work, though some X11 libs are > required. For an X11 connection, a lot depends on how you are > connected. Its ideal for a LAN, works OK for reasonably fast WANs, such > as DSL and can work over modem dialup at 56k (though in that case, you > would want to use one of the X11 compression protocols). For this method > to work, you enable X11 forwarding in the ssh configuration (see the ssh > manual). This option is often enabled by default on Linux systems. Does this work when emacs is running on a Windows XP box? > However, a question I have to ask is how often do you really need to > edit files as root? As root? Quite often. As a user other than the user I log in with? Almost always. > amount of analysis, we found that we were able to reconfigure things so > that over 90% of what I needed to do could be done without root > access. Maybe you could do something similar? I'm not in a position where I can tell my customers what to do ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk