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 <[EMAIL PROTECTED]> - http://www.lordsutch.com/chris/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

