From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "foo@bar.baz" Newsgroups: gmane.emacs.help Subject: Re: emacs idiom for sudo Date: 22 May 2007 07:25:16 -0700 Organization: http://groups.google.com Message-ID: <1179843916.583993.14130@x35g2000prf.googlegroups.com> References: <87k5v4doio.fsf@lion.rapttech.com.au> <87abvxdzwk.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1179849086 3558 80.91.229.12 (22 May 2007 15:51:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 15:51:26 +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 17:51:23 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 1HqWdu-0007fO-Pr for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 17:51:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqWdv-00017E-PE for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 11:51:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x35g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 62.214.249.210 Original-X-Trace: posting.google.com 1179843953 14095 127.0.0.1 (22 May 2007 14:25:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 22 May 2007 14:25:53 +0000 (UTC) In-Reply-To: <87abvxdzwk.fsf@lion.rapttech.com.au> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070225 Firefox/2.0.0.2 (Swiftfox),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: x35g2000prf.googlegroups.com; posting-host=62.214.249.210; posting-account=53A65w0AAABlT_MHwNJN1gLHYaYa_hmR Original-Xref: shelby.stanford.edu gnu.emacs.help:148671 X-Mailman-Approved-At: Tue, 22 May 2007 11:51:08 -0400 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:44264 Archived-At: On May 22, 10:29 am, Tim X wrote: > You may be able to do something with emacsclient, but you woul dstill need an > emacs running somewhere as the user you want th e code to run as. > > Probably more of a hassle than its worth - but that depends on your > environment/needs I guess. I often use emacsclient to edit files from the terminal. With files that I have to edit as root I have to switch to emacs, start tramp, find the file... Is it possible to use emacsclient with sudo? I tried 'sudo emacsclient file', but this didn't work.