[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 15 Jun 2002 05:49:06 +0800, Dan Jacobson <jidanni@deadspam.com> said:

 Dan> The following message is a courtesy copy of an article that has
 Dan> been posted to gnu.emacs.bug as well.

 Dan> This may be a debian specific problem, hence the CC.

 Dan> It may be "user lack of understanding".  If so, "then beef up
 Dan> the FAQs".  Or maybe I didn't look.  Anyways, I solved the
 Dan> problem.  I put
 Dan>         xhost local:root #dangerous? else root can't open an
 Dan>         emacs window
 Dan> in ~/.xsession.  Anyways, the problem was:

 Dan> How do I get emacs to run as root when I do su, in its own X
 Dan> window?  $ su
 Dan> # emacs

run it as "DISPLAY=:0 XAUTHORITY=~name-of-user-running-x/.Xauthority
emacs"

or as someone else suggested use sudo.

Jim

-- 
@James LewisMoss <dres@debian.org>      |  Blessed Be!
@    http://people.debian.org/~dres     |  Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach


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



Reply to: