From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Luque Newsgroups: gmane.emacs.help Subject: Re: Edit file write protected by superuser rigths Date: Mon, 08 Aug 2005 17:47:58 -0500 Organization: Memorial University of Newfoundland Message-ID: <87u0i02ggx.fsf@gmail.com> References: <0FD56944-1421-4898-B4E2-B14A31BE09C3@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123542811 22548 80.91.229.2 (8 Aug 2005 23:13:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 23:13:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 09 01:12:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2GlU-0006BU-Bz for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Aug 2005 01:10:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2GoW-0002kl-An for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 19:13:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2Gge-0008VZ-9S for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 19:05:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2Ggb-0008TC-IU for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 19:05:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2GgZ-0008R6-QR for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 19:05:36 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E2GqO-0002qA-SF for help-gnu-emacs@gnu.org; Mon, 08 Aug 2005 19:15:45 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1E2Gbn-0005Hc-RU for help-gnu-emacs@gnu.org; Tue, 09 Aug 2005 01:00:39 +0200 Original-Received: from s0106001111ddbc6e.wp.shawcable.net ([24.77.74.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Aug 2005 01:00:39 +0200 Original-Received: from spluque by s0106001111ddbc6e.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Aug 2005 01:00:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s0106001111ddbc6e.wp.shawcable.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:Y3s5gjKTFnWYbZqGtPwMejH+Z0M= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28570 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28570 Armin Goralczyk wrote: [...] > So how can I save the file provided that I can have superuser rights? You can use the tramp package for this. Once properly installed and available in your session, you can do 'C-x C-f /su::/path/to/file', provide your superuser password, and you'll be editing the file as superuser thereafter. Watch out for a nasty bug that bit me with kernel 2.6.10 (http://thread.gmane.org/gmane.emacs.devel/37967). -- Sebastian P. Luque