From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xiao-Yong Jin Newsgroups: gmane.emacs.help Subject: Re: Using Emacs as root ? Date: Sat, 09 Sep 2006 18:50:43 -0400 Message-ID: <86mz98y7r0.fsf@presario.homeunix.org> References: <1157841510.2423.32.camel@CASE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157842276 31174 80.91.229.2 (9 Sep 2006 22:51:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Sep 2006 22:51:16 +0000 (UTC) Cc: EMACS List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 00:51:15 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 1GMBfG-0001z0-PC for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2006 00:51:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMBfG-0002Cj-CT for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Sep 2006 18:51:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMBf2-0002CR-Mu for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:50:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMBf0-0002CE-8G for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:50:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMBf0-0002CB-2c for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:50:50 -0400 Original-Received: from [128.59.29.8] (helo=brinza.cc.columbia.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GMBfu-0005ye-MP for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:51:46 -0400 Original-Received: from presario.homeunix.org (dyn-pupin-171-80.dyn.columbia.edu [128.59.171.80]) (user=xj2106 mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.13.7/8.13.6) with ESMTP id k89MojaC014323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 9 Sep 2006 18:50:45 -0400 (EDT) Original-To: William Case In-Reply-To: <1157841510.2423.32.camel@CASE> (William Case's message of "Sat, 09 Sep 2006 18:38:29 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.48 on 128.59.29.8 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:37257 Archived-At: William Case writes: > Hi; > > Kind of an Emacs beginner's question. > > I do only a little programming -- occasionally writing bash scripts; > that kind of thing. I mainly use emacs from my desktop launcher to edit > text files like my .bashrc etc. > > The other day I was reading up on man smb.conf in my gterminal and > wanted to make some minor changes to smb.conf. I needed to open a new > tab in the gterminal; su; then run emacs /etc/samba/smb.conf. That's OK > if that is what emacs is designed to do. But is there a way to launch > emacs and use some command in the emacs input line that will directly > open a root protected file while I am user, perhaps combined with C-x > C-f? Is there some key combination I can set up? Try C-x C-f /sudo:root@localhost:/ Or use su instead of sudo if you don't use sudo. You can get more information in the info pages of Tramp in Emacs. Xiao-Yong -- ,,, (o o) ---ooO-(_)-Ooo---