PDA

View Full Version : Invalid XDM-AUTHORIZATION



dbrot
02-08-2004, 01:09 AM
Anyone know what this error is. I was using showeq the other night and it worked fine but tried using it tonight and got this error. I tried recompiling it but still get the error. I'm running the latest beta version of seq on SUSE 9.0.


@linux:~> su
linux: # /usr/local/bin/showeq -i eth0 192.168.0.4
Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
showeq: cannot connect to X server :0.0

monster69
02-08-2004, 10:48 AM
ShowEQ is an "X" application, meaning 1 of 2 things:

1) If you are trying to run it on the linux box you will be using, you must have X installed and running before you execute your commands.

2) If you are trying to display it on a different desktop than the linux box it is on, you must have an X server on that desktop and have EXPORTed your display from the linux box.

Monster

Cryonic
02-08-2004, 11:20 AM
The error suggests that you have upgraded X, but possibly not restarted X and other processes (e.g. xdm, kdm or gdm). Also, do su - instead of su when you switch to root. You want to gain all the attributes of being root (path included).

http://www.nclug.org/pipermail/nclug/2003-June/005350.html

dbrot
02-13-2004, 12:52 AM
I found out why I was getting this error.

You can not start X applications under root without setting the
XAUTHORITY environment variable appropriately. This should do the
trick:

XAUTHORITY=(user's home dir)/.Xauthority; export XAUTHORITY

Seq works under gnome and KDE.

Cryonic
02-13-2004, 10:27 AM
or better yet, as the normal user do:

xhost +localhost

once you have done that you won't need to alter any environment variables or anything else after that.

If, at any time, you want to restrict access again as the normal user do:

xhost -localhost