[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editing Files Like /etc/hosts
From: |
Michael Albinus |
Subject: |
Re: Editing Files Like /etc/hosts |
Date: |
Fri, 10 Mar 2006 09:11:22 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux) |
Annamalai Gurusami <annamalai.gurusami@EMAIL.masconit.com> writes:
> Hi All,
Hi,
>
> Suppose I am currently logged in as a normal user, and am using emacs
> for editing some files. And while in the middle of such an emacs
> session, I would like to change the file /etc/hosts. How can I open
> this file such that I can edit it?
>
> If I do something like this
>
> C-x C-f /root@localhost:/etc/hosts RET
>
> I am getting login incorrect, because I think by default we cannot
> login as 'root' in a ftp session.
You might try Tramp <http://www.gnu.org/software/tramp/>. Then you
could edit something like "/su:root@localhost:/etc/hosts" (or
"/su::/etc/hosts" in short).
> Rgds,
> anna
Best regards, Michael.