[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: sudo emacs

From: Doug Lewan
Subject: RE: sudo emacs
Date: Wed, 6 Feb 2013 14:59:20 +0000

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 ( can help do the 
right thing. (No, I haven't used it; I just went looking.)

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 religion. 
- Abraham Lincoln

> -----Original Message-----
> From:
> [] On
> Behalf Of drain
> Sent: Wednesday, 2013 February 06 05:06
> To:
> Subject: sudo emacs
> This somewhat downgrades root privileges, but I cannot encrypt mail
> without
> it. Hitherto I almost never ran Emacs with sudo.
> The problem is, I cannot access any files without sudo. Now all of my
> inits
> require it.
> I was thinking of creating alternates. Is it possible for .emacs to be
> instructed to ignore certain files and load others depending on
> privilege?
> 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.
> --
> View this message in context:
> emacs-tp277339.html
> Sent from the Emacs - Help mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]