From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: sudo emacs Date: Wed, 6 Feb 2013 14:59:20 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9828E6DD16@DAKIYA1.pegasus.local> References: <1360145178147-277339.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1360163601 28434 80.91.229.3 (6 Feb 2013 15:13:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2013 15:13:21 +0000 (UTC) To: drain , "Help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 16:13:39 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U36gs-0007GR-MS for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 16:13:38 +0100 Original-Received: from localhost ([::1]:37654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U36gZ-0002rn-U8 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 10:13:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U36RL-0005T8-W1 for Help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 09:57:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U36RK-0006GM-K7 for Help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 09:57:35 -0500 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:23325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U36RK-0006Fs-GC for Help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 09:57:34 -0500 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.01.0339.001; Wed, 6 Feb 2013 09:59:21 -0500 Thread-Topic: sudo emacs Thread-Index: AQHOBFHpqvAVVO8w6kOWlY4bR/2KjZhs6g0w In-Reply-To: <1360145178147-277339.post@n5.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88989 Archived-At: I'm not a sudo-er at work, but I bet all the files you create (and probably= get auto-saved) are owned by root (or whatever user you sudo to). Maybe sudo-ext.el (http://www.emacswiki.org/emacs/sudo-ext.el) can help do = the right thing. (No, I haven't used it; I just went looking.) ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 When I do good, I feel good. When I do bad, I feel bad and that's my religi= on. - Abraham Lincoln > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of drain > Sent: Wednesday, 2013 February 06 05:06 > To: Help-gnu-emacs@gnu.org > Subject: sudo emacs >=20 > This somewhat downgrades root privileges, but I cannot encrypt mail > without > it. Hitherto I almost never ran Emacs with sudo. >=20 > The problem is, I cannot access any files without sudo. Now all of my > inits > require it. >=20 > I was thinking of creating alternates. Is it possible for .emacs to be > instructed to ignore certain files and load others depending on > privilege? >=20 > I *believe* I've seen people write code that enables Emacs to > distinguish > between the OS it is running on and run the inits accordingly, etc. >=20 >=20 >=20 > -- > View this message in context: http://emacs.1067599.n5.nabble.com/sudo- > emacs-tp277339.html > Sent from the Emacs - Help mailing list archive at Nabble.com.