help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp su from dired


From: Peter FELECAN
Subject: Re: Tramp su from dired
Date: Tue, 26 May 2009 18:12:26 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (usg-unix-v)

Tim X <timx@nospam.dev.null> writes:

> notbob <notbob@nothome.com> 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

Or C-x C-f /su::/path/to/file/owned/by/root
-- 
the true email address is encoded in an attempt to minimize spam.
pass csryrpna ng npz qbg bet through http://www.rot13.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]