From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.help Subject: Re: Editing Files Like /etc/hosts Date: Fri, 10 Mar 2006 08:45:25 -0800 Organization: Newt Software Message-ID: <87veumuu3e.fsf@olgas.newt.com> References: <87bqwebzyq.fsf@annamalai.mct.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142009540 16342 80.91.229.2 (10 Mar 2006 16:52:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2006 16:52:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 17:52:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHkou-0003F5-Qu for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2006 17:50:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHkot-0007qS-AV for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2006 11:50:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FHkme-0006cn-Fd for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 11:48:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FHkmX-0006Xs-C9 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 11:48:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHkmW-0006Wt-Gk for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 11:48:00 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FHkpq-0004JQ-M4 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 11:51:26 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FHklT-0002Cu-V5 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 17:46:56 +0100 Original-Received: from h-68-165-5-58.snvacaid.dynamic.covad.net ([68.165.5.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Mar 2006 17:46:55 +0100 Original-Received: from wohler by h-68-165-5-58.snvacaid.dynamic.covad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Mar 2006 17:46:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 14 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: h-68-165-5-58.snvacaid.dynamic.covad.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:NHxUUHii8s31x2/Q7wYsy5e/A5M= 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:33684 Archived-At: Annamalai Gurusami writes: > Suppose I am currently logged in as a normal user, and am using emacs > for editing some files. And while in the middle of such an emacs > session, I would like to change the file /etc/hosts. How can I open > this file such that I can edit it? I usually have another Emacs session run by root for such things, but I would be curious to hear if I could use my non-root session as well. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane.