From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Amy Templeton Newsgroups: gmane.emacs.help Subject: Re: emacs idiom for sudo Date: Tue, 22 May 2007 00:18:52 -0400 Message-ID: <87bqgdze1f.fsf@gmail.com> References: <87k5v4doio.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179807188 11732 80.91.229.12 (22 May 2007 04:13:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 04:13:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 22 06:13:07 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 1HqLkA-00024X-Nk for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 06:13:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqLkA-0005oD-6R for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 00:13:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqLju-0005o4-88 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 00:12:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqLjs-0005nr-RN for help-gnu-emacs@gnu.org; Tue, 22 May 2007 00:12:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqLjs-0005na-HC for help-gnu-emacs@gnu.org; Tue, 22 May 2007 00:12:48 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.246]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqLjs-00086F-8n for help-gnu-emacs@gnu.org; Tue, 22 May 2007 00:12:48 -0400 Original-Received: by an-out-0708.google.com with SMTP id c17so540453anc for ; Mon, 21 May 2007 21:12:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:to:subject:references:from:x-now-playing:x-zippy-says:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=EB8cgSoEFH89VP4TcMnn/bd3rx9QA4wXPOAQALjVlO3ptp+GyPLFkvYZEZGGikb4LjLlP3T4KtFjKTHLPxZrSSrT1q63kWMqDun4fwthE9NXGa3yY0g3GCZweHPXIm0uKUMMgdlF7k8cABcKWUSAX+HRV/ax99Y4N0PXqd8KmMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:subject:references:from:x-now-playing:x-zippy-says:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=KJW3YtG3b9pa8N5Ud9qniczrINgA/836qq7hWxgM4/qE9VCjim6EhwTc1XTLhxn/m4u9Nfx7jsGBlkAvCmxe2OoEguYk3Tq+4PWw9Mk8NUcyltuljFHzPiGolWi2i5xrFfvmIDCjuuqJYzjlNUbVDg9rNNxKcFiooEelLBImZ14= Original-Received: by 10.100.40.17 with SMTP id n17mr3509328ann.1179807167593; Mon, 21 May 2007 21:12:47 -0700 (PDT) Original-Received: from localhost ( [132.162.245.20]) by mx.google.com with ESMTP id b11sm14853075ana.2007.05.21.21.12.47; Mon, 21 May 2007 21:12:47 -0700 (PDT) X-Now-Playing: Loreena McKennitt - Cymbeline X-Zippy-Says: Not SENSUOUS... only ``FROLICSOME''... and in need of DENTAL WORK... in PAIN!!! In-Reply-To: <87k5v4doio.fsf@lion.rapttech.com.au> (Tim X.'s message of "Sun\, 20 May 2007 15\:58\:55 +1000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.6 (newer, 2) 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:44234 Archived-At: Tim X wrote: > "Rustom Mody" writes: > > 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 > I use tramp to do this. Essentially, using either a 'su' or 'sudo' tramp method > to edit a local file. This is described in the tramp manual. What about executing some elisp code as root (obviously including a password prompt, not just executing it without any question)? Or is it necessary to just start a whole new Emacs? I didn't see anything about this in the tramp manual, but I might not be looking hard enough. Amy -- Clovis' Consideration of an Atmospheric Anomaly: The perversity of nature is nowhere better demonstrated than by the fact that, when exposed to the same atmosphere, bread becomes hard while crackers become soft.