unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Albinus <Michael.Albinus@alcatel.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Editing Files Like /etc/hosts
Date: Fri, 10 Mar 2006 09:11:22 +0100	[thread overview]
Message-ID: <nqlkvin2hh.fsf@alcatel.de> (raw)
In-Reply-To: <mailman.168.1141972087.2832.help-gnu-emacs@gnu.org> (Annamalai Gurusami's message of "Fri, 10 Mar 2006 11:31:17 +0530")

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.

       reply	other threads:[~2006-03-10  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.168.1141972087.2832.help-gnu-emacs@gnu.org>
2006-03-10  8:11 ` Michael Albinus [this message]
2006-03-10  6:01 Editing Files Like /etc/hosts Annamalai Gurusami
2006-03-10 16:45 ` Bill Wohler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nqlkvin2hh.fsf@alcatel.de \
    --to=michael.albinus@alcatel.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).