From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Using Emacs as root ? Date: Sat, 09 Sep 2006 18:38:29 -0400 Message-ID: <1157841510.2423.32.camel@CASE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157841516 29437 80.91.229.2 (9 Sep 2006 22:38:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Sep 2006 22:38:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 00:38:35 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 1GMBT7-0008B9-TC for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2006 00:38:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMBT7-0005gb-9V for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Sep 2006 18:38:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMBSu-0005fU-J6 for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:38:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMBSt-0005dT-2S for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:38:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMBSs-0005dL-V5 for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:38:18 -0400 Original-Received: from [206.190.36.79] (helo=smtp101.rog.mail.re2.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1GMBTn-00055R-E9 for help-gnu-emacs@gnu.org; Sat, 09 Sep 2006 18:39:15 -0400 Original-Received: (qmail 82512 invoked from network); 9 Sep 2006 22:38:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=Xevw1teRXJ8mN6aBFsbndaScGUoaYFTR/gHWt8VigqlGSOVaO4sAtX0hLfm/rL22YzyQ3xJa0aEMmDorVRsr87Y8HiX1uv9ai/uUO2o3ND68KxG85Ryitd28X4JdjBSw4HEZHapgdtj7Y6iXC0MQqfWkIIzV5jKymA5kl6ghKPo= ; Original-Received: from unknown (HELO ?192.168.1.4?) (billlinux@rogers.com@74.104.100.126 with plain) by smtp101.rog.mail.re2.yahoo.com with SMTP; 9 Sep 2006 22:38:17 -0000 Original-To: EMACS List X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) 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:37255 Archived-At: 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? -- Regards Bill