<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>XAUTHORITY on Michael’s Domain</title><link>https://jeltsch.org/en/tags/xauthority/</link><description>Recent content in XAUTHORITY on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/xauthority/index.xml" rel="self" type="application/rss+xml"/><item><title>Problem to access X desktop from a root terminal</title><link>https://jeltsch.org/en/problem_to_access_x_desktop_from_a_root_terminal/</link><pubDate>Thu, 24 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/problem_to_access_x_desktop_from_a_root_terminal/</guid><description>&lt;p&gt;It never happened to me under Red Hat 9, but when I am working in KDE as a normal user and try to execute emacs from a terminal, in which I am su, I occasionally get the following error message:&lt;code&gt;jeltsch@mcblpc2:~&amp;gt; suPassword:mcblpc2:/home/jeltsch emacs test.txtXlib: connection to &amp;quot;:0.0&amp;quot; refused by serverXlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)emacs: Cannot connect to X server :0.0.Check the DISPLAY environment variable or use &lt;/code&gt;-d&amp;rsquo;.&lt;code&gt;Also use the &lt;/code&gt;xhost&amp;rsquo; program to verify that it is set to permit connections from your machine. In order to allow root to access X, you need to execute the following command: &lt;code&gt;mcblpc2:/home/jeltsch export XAUTHORITY=/home/jeltsch/.Xauthoritymcblpc2:/home/jeltsch emacs test.txt&lt;/code&gt;Of course, I can use emacs without its GUI and just type:&lt;code&gt;emacs -nw test.txt&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>