help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing a file as root


From: Micha Feigin
Subject: Re: Editing a file as root
Date: Mon, 15 Dec 2003 19:22:58 +0200
User-agent: Mutt/1.5.4i

On Mon, Dec 15, 2003 at 01:50:12AM +0100, David Kastrup wrote:
> 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.
> 

its bidi emacs. Its based on the cvs version (2.3.50 iirc).

> -- 
> David Kastrup, Kriemhildstr. 15, 44793 Bochum
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]