[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editing a file as root
From: |
David Kastrup |
Subject: |
Re: Editing a file as root |
Date: |
15 Dec 2003 01:50:12 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
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
- Editing a file as root, bhiker, 2003/12/14
- Re: Editing a file as root, Dan Anderson, 2003/12/14
- Re: Editing a file as root, David Kastrup, 2003/12/14
- Re: Editing a file as root, Micha Feigin, 2003/12/14
- Message not available
- Re: Editing a file as root,
David Kastrup <=
- Re: Editing a file as root, Micha Feigin, 2003/12/15
- Message not available
- Re: Editing a file as root, Benjamin Rutt, 2003/12/15
- Re: Editing a file as root, Micha Feigin, 2003/12/16
- Message not available
- Re: Editing a file as root, Benjamin Rutt, 2003/12/16
- Message not available
- Re: Editing a file as root, Kai Grossjohann, 2003/12/17
- Re: Editing a file as root, Sébastien Kirche, 2003/12/15
- Re: Editing a file as root, gebser, 2003/12/15
- Re: Editing a file as root, Piet van Oostrum, 2003/12/17
- Re: Editing a file as root, Kai Grossjohann, 2003/12/17
- Re: Editing a file as root, Kevin Rodgers, 2003/12/18