From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Micha Feigin Newsgroups: gmane.emacs.help Subject: Re: Editing a file as root Date: Mon, 15 Dec 2003 19:22:58 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20031215172258.GJ5898@luna.mooo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071510369 25539 80.91.224.253 (15 Dec 2003 17:46:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2003 17:46:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 15 18:46:03 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AVwnC-0006LO-02 for ; Mon, 15 Dec 2003 18:46:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVxf7-0003f2-BI for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2003 13:41:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AVxeY-0003ao-DF for help-gnu-emacs@gnu.org; Mon, 15 Dec 2003 13:41:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AVxRU-0000RC-PF for help-gnu-emacs@gnu.org; Mon, 15 Dec 2003 13:28:12 -0500 Original-Received: from [132.66.16.11] (helo=post.tau.ac.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVxRT-0000Py-R2 for help-gnu-emacs@gnu.org; Mon, 15 Dec 2003 13:27:40 -0500 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by post.tau.ac.il (Postfix) with ESMTP id A0CBF15F6CD for ; Mon, 15 Dec 2003 19:26:11 +0200 (IST) Original-Received: from post.tau.ac.il (localhost.localdomain [127.0.0.1]) by localhost.localdomain (VaMailArmor-2.0.1.16) id 06851-521AB3FE; Mon, 15 Dec 2003 19:26:03 +0200 Original-Received: from litshi.luna.local (math201-1.tau.ac.il [132.66.40.199]) by post.tau.ac.il (Postfix) with ESMTP id A982015F6A5 for ; Mon, 15 Dec 2003 19:23:41 +0200 (IST) Original-Received: from micha by litshi.luna.local with local (Exim 4.30) id 1AVwQs-0002OE-SM for help-gnu-emacs@gnu.org; Mon, 15 Dec 2003 19:22:58 +0200 Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.23.0.1; VDF: 6.23.0.10; host: localhost) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15280 On Mon, Dec 15, 2003 at 01:50:12AM +0100, David Kastrup wrote: > Micha Feigin writes: > > > On Sun, Dec 14, 2003 at 10:25:41PM +0100, David Kastrup wrote: > > > Dan Anderson 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 >