From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Tramp su from dired Date: Sun, 24 May 2009 12:03:09 +1000 Organization: Rapt Technologies Message-ID: <87octjtfz6.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243132850 31473 80.91.229.12 (24 May 2009 02:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 May 2009 02:40:50 +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 24 04:40:43 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 1M83di-0006gj-LK for geh-help-gnu-emacs@m.gmane.org; Sun, 24 May 2009 04:40:42 +0200 Original-Received: from localhost ([127.0.0.1]:33313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M83di-0005az-5U for geh-help-gnu-emacs@m.gmane.org; Sat, 23 May 2009 22:40:42 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news.alt.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) Cancel-Lock: sha1:s6xhQakpUpgTqkrd4KkcYrW23G0= Original-Lines: 22 Original-NNTP-Posting-Host: 76488d33.news.astraweb.com Original-X-Trace: DXC=dEk0eeCje2F\kdljK^UWoEL?0kYOcDh@JHd`=_HE@=G Original-Xref: news.stanford.edu gnu.emacs.help:169428 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:64661 Archived-At: notbob writes: > As a novice emacs fan, I'm learning by using emacs primarily as a file mgr > and file editor. I often need to edit a root file as a user and have > usually just opened up a new session of emacs as root, but would like to > utilize the tramp mode. I've been able to edit a root file from via tramp > when not in dired mode, but when using e (edit) or C-x C-f in dired and then > specifying a file -- /su::/dir/foo -- I end up opening a new foo file > instead of the existing foo file I specified. > > Is it possible to do su from dired or should I just open up a non-dired > window? If so, how? (told you I was a noob) ;) > Try C-x C-f /root@localhost:/path/to/file/owned/by/root Tim -- tcross (at) rapttech dot com dot au