From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: emacs idiom for sudo Date: Mon, 21 May 2007 22:38:00 -0400 Message-ID: <46525788.8080306@gatech.edu> References: <87646okr78.fsf@offby1.atm01.sea.blarg.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179801506 22760 80.91.229.12 (22 May 2007 02:38:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 02:38:26 +0000 (UTC) To: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 22 04:38:25 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HqKGU-0006D4-2r for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 04:38:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqKGT-0000cA-Lf for geh-help-gnu-emacs@m.gmane.org; Mon, 21 May 2007 22:38:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqKGF-0000bF-Ms for help-gnu-emacs@gnu.org; Mon, 21 May 2007 22:38:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqKGC-0000VA-Tn for help-gnu-emacs@gnu.org; Mon, 21 May 2007 22:38:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqKGC-0000Uz-Q4 for help-gnu-emacs@gnu.org; Mon, 21 May 2007 22:38:04 -0400 Original-Received: from deliverator4.gatech.edu ([130.207.165.164]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HqKGC-000746-E9 for help-gnu-emacs@gnu.org; Mon, 21 May 2007 22:38:04 -0400 Original-Received: from deliverator4.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 246FBA4C6 for ; Mon, 21 May 2007 22:38:03 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx5.gatech.edu (mailprx5.prism.gatech.edu [130.207.171.19]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator4.gatech.edu (Postfix) with ESMTP id 0C3C0A4C1 for ; Mon, 21 May 2007 22:38:03 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [192.168.0.108] (c-71-224-192-74.hsd1.pa.comcast.net [71.224.192.74]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx5.gatech.edu, sender=n/a) by mailprx5.gatech.edu (Postfix) with ESMTP id B96C321E6 for ; Mon, 21 May 2007 22:38:02 -0400 (EDT) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.10 (X11/20070306) In-Reply-To: <87646okr78.fsf@offby1.atm01.sea.blarg.net> X-Enigmail-Version: 0.94.3.0 X-detected-kernel: Solaris 9 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:44233 Archived-At: Eric Hanchrow wrote: > Is there a more convenient way for doing 'root-things' than > -- get out of emacs (maybe suspend) > -- start a shell > -- sudo editor (usually vi) OR su ... password... editor > > Indeed there is -- use "tramp", by doing, e.g., > > C-x C-f /sudo::/etc/passwd RET Thanks! A little hackish, but it works. Matt Flaschen