On Sun, Jan 14, 2001 at 04:59:12PM +0100, Brendon wrote: > when opening an xterminal in kde2 and attempting to run make xconfig in > /usr/src/kernel-source-x.y.z/ i get the following error: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server > Application initialization failed: couldn't connect to display ":0" X clients authenticate themselves by using the .Xauthority file. If the user running the X session su's to root his .Xauthority file is not found in /root. So as root you can cd to /root and link .Xauthority to the users .Xauthority.Or you could set the XAUTHORITY env variable in the users .bashrc so when the user su's to root , this variable will be passed to the root shell. Or you could set XAUTHORITY for each instance with: XAUTHORITY=/home/user/.Xauthority 'command'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~