[Top][All Lists]

[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: 14 Dec 2003 22:25:41 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Dan Anderson <address@hidden> writes:

> address@hidden 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
(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.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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