Unix Technical Forum

Problems with MIT-MAGIC-COOKIE-1 / xauth / xhost

This is a discussion on Problems with MIT-MAGIC-COOKIE-1 / xauth / xhost within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm having problems with running XWindows applications from one of my machines. When I attempt to run a program ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:56 PM
Pif Paf
 
Posts: n/a
Default Problems with MIT-MAGIC-COOKIE-1 / xauth / xhost

I'm having problems with running XWindows applications from one of my
machines. When I attempt to run a program from konsole, I get an error
message like this:

$ kwrite
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
kwrite: cannot connect to X server :0.0

I've never come across "MIT-MAGIC-COOKIE-1" before but a quick Google
revealed that it's an authentication scheme aimed at ensuring only authorised
people can access the X server. Furthermore, it uses a file in the home
directory, ~/.Xauthority , and I think this might be the problem.

I have 3 boxes, "box17", "box18" and "box20". box17 is a file server. User
"myuser"'s home directory, on all 3 machines, is box17:/export/users/myuser/
When I was just using box17 and box18, there were no problems, but now I am
using box20 with myuser, the problem has appeared. I am logged in with KDE
as myuser on both box18 and box20, and it seems likely that both are writing
to ~myuser/.Xauthority, which is stored on:

box17:/export/users/myuser/.Xauthority

and is therefore getting overwritten. In search for a was to turn X
authentication off, I tried xhost +, but got a similar error message:

$ xhost +
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
xhost: unable to open display ":0.0"

Is there any way to switch off X authentication, to get it to work? Or
is there another, simpler, way to get it to work?


(FWIW, I'm running Mandrake 9.1, and KDE 3.1)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:59 PM
Bill Marcum
 
Posts: n/a
Default Re: Problems with MIT-MAGIC-COOKIE-1 / xauth / xhost

On 5 May 2004 09:24:12 -0700, Pif Paf
<p1fp4f@hotmail.com> wrote:
>
> Is there any way to switch off X authentication, to get it to work? Or
> is there another, simpler, way to get it to work?
>
>

ssh -X [user@]boxname command
you may need to edit the config files in /etc/ssh to enable X11
forwarding.

--
Now KEN and BARBIE are PERMANENTLY ADDICTED to MIND-ALTERING DRUGS ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com