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

Re: emacs to run as root from su, in its own X window?



On Jun 15, Dan Jacobson wrote:
> The following message is a courtesy copy of an article
> that has been posted to gnu.emacs.bug as well.
> 
> This may be a debian specific problem, hence the CC.
> 
> It may be "user lack of understanding".  If so, "then beef up the
> FAQs".  Or maybe I didn't look.  Anyways, I solved the problem.  I put
>         xhost local:root #dangerous? else root can't open an emacs window
> in ~/.xsession.  Anyways, the problem was:
> 
> How do I get emacs to run as root when I do su, in its own X window?

Don't use su, it doesn't pass X authorization credentials
(.Xauthority) to the root process.  sudo is vastly superior and solves
this detail; it's also safer.

xhost is, indeed, dangerous; if you're not careful, you can easily
open a root hole into your box.


Chris
-- 
Chris Lawrence <chris@lordsutch.com> - http://www.lordsutch.com/chris/


-- 
To UNSUBSCRIBE, email to debian-emacsen-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: