[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp su from dired
From: |
Tim X |
Subject: |
Re: Tramp su from dired |
Date: |
Sun, 24 May 2009 12:03:09 +1000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) |
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
Tim
--
tcross (at) rapttech dot com dot au