From: David Kastrup <dak@gnu.org>
Subject: Re: Editing a file as root
Date: 15 Dec 2003 01:50:12 +0100 [thread overview]
Message-ID: <x5smjmewfv.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.65.1071450890.868.help-gnu-emacs@gnu.org
Micha Feigin <michf@post.tau.ac.il> writes:
> On Sun, Dec 14, 2003 at 10:25:41PM +0100, David Kastrup wrote:
> > Dan Anderson <dan@mathjunkies.com> writes:
> >
> > > bhiker@free.fr writes:
> > >
> > > > To edit a file as root, do I have to start another emacs ?
> > >
> > > Start emacs under a root shell or after suing (or sudoing emacs) and
> > > you'll start emacs running with root permissions.
> >
> > If you have tramp installed (like the CVS Emacs has by default), you
> > can just edit the file
> > /su::/etc/fstab
> > (for example), Emacs will ask you for the root password, spawn a root
> > shell and use a pipe to it to send files back and forth transparently.
> >
> > tramp is available as a separate package, too, if you don't like
> > using developer Emacsen.
>
> Actually reading the tramp documentation it would seem that the correct
> way to do this is
> /[su/localhost]/etc/fstab
Then you are either using an outdated tramp or XEmacs or both.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2003-12-15 0:50 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1AT5y2-0002EZ-OF@monty-python.gnu.org>
2003-12-14 18:54 ` Editing a file as root bhiker
[not found] ` <mailman.62.1071431778.868.help-gnu-emacs@gnu.org>
2003-12-14 21:09 ` Dan Anderson
2003-12-14 21:25 ` David Kastrup
2003-12-15 0:12 ` Micha Feigin
[not found] ` <mailman.65.1071450890.868.help-gnu-emacs@gnu.org>
2003-12-15 0:50 ` David Kastrup [this message]
2003-12-15 17:22 ` Micha Feigin
[not found] ` <mailman.105.1071513681.868.help-gnu-emacs@gnu.org>
2003-12-15 21:57 ` Benjamin Rutt
2003-12-16 12:41 ` Micha Feigin
[not found] ` <mailman.136.1071582719.868.help-gnu-emacs@gnu.org>
2003-12-16 15:36 ` Benjamin Rutt
2003-12-17 18:01 ` Kai Grossjohann
2003-12-15 10:47 ` Sébastien Kirche
2003-12-15 12:40 ` gebser
2003-12-17 15:51 ` Piet van Oostrum
2003-12-17 18:04 ` Kai Grossjohann
2003-12-18 17:28 ` Kevin Rodgers
2003-12-18 18:28 ` Kai Grossjohann
2003-12-19 11:16 ` Piet van Oostrum
2003-12-21 13:52 ` Kai Grossjohann
2003-12-15 18:39 ` kgold
[not found] <mailman.83.1071495859.868.help-gnu-emacs@gnu.org>
2003-12-15 13:15 ` Sébastien Kirche
2003-12-15 16:17 ` gebser
2003-12-17 18:06 ` Kai Grossjohann
[not found] <mailman.97.1071509004.868.help-gnu-emacs@gnu.org>
2003-12-17 10:07 ` Sébastien Kirche
2003-12-17 13:19 ` gebser
2003-12-17 18:08 ` Kai Grossjohann
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=x5smjmewfv.fsf@lola.goethe.zz \
--to=dak@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).