“X11 connection rejected because of wrong authentication”. Now what?

[weblogic@server ~]$ xclock
X11 connection rejected because of wrong authentication.
X connection to localhost:12.0 broken (explicit kill or server shutdown).

If you get this annoying message, you probably need to start an X11 application (for instance, for running the OUI or Oracle Universal Installer) from Unix or Linux. And you are here because you don’t know how to solve it.

Well, this trick usually works for me:

login as administrator or root, and enter:

[root@server ~]# echo $DISPLAY
localhost:13.0
[root@server ~]# xauth list
server/unix:10  MIT-MAGIC-COOKIE-1  b72cdb7673e4029ee232667d67f36f7e
server/unix:11  MIT-MAGIC-COOKIE-1  f216396c3a7fe040c23c76d46a142278
server/unix:12  MIT-MAGIC-COOKIE-1  ded8d0fb465fb02988ecbfb4e3f12178
server/unix:13  MIT-MAGIC-COOKIE-1  5e49789500114d6387b9e6ee9a6e5d6a
[root@server ~]#

now login as the user which needs to start the X-session process.

enter:

[root@server ~]# su - weblogic
[weblogic@server ~]$ echo $DISPLAY
localhost:13.0
[weblogic@server ~]$ xauth add server/unix:13  MIT-MAGIC-COOKIE-1  5e49789500114d6387b9e6ee9a6e5d6a
[weblogic@server ~]$ xclock
Warning: Missing charsets in String to FontSet conversion
[weblogic@server ~]$

you’re set to go!

If this does or does not work for you, or you have a better solution, please leave me a message!

2 Reacties

Laat een reactie achter

Het e-mailadres wordt niet gepubliceerd.

Deze site gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

By using this site you acknowledge the use of cookies (which are mostly harmless, btw) More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below you are agreeing to these settings.

Close