The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Xlib - Mapping Pixel Values to RGB Colors thebin High Level Programming 1 03-21-2008 11:55 PM
cannot use the same script to read cookie azmathshaikh Shell Programming and Scripting 0 03-08-2006 06:15 AM
xlib blues (XFree86 - Linux) Alux High Level Programming 1 12-01-2005 07:44 AM
Cant locate CGI/Cookie.pm naik_mit Linux 1 05-27-2005 01:51 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-24-2002
errolg errolg is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 6
Xlib: Invalid MIT-MAGIC-COOKIE-1

Anyone:

I have a very annoying problem on one of our servers (running Solaris 8). when ever I try to run "xhost +" with the display set at "localhost:0.0" I get the following error:
xhost +

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

echo $DISPLAY
finappprod:0.0

I've tried to recreate the /.Xauthority file by doing:

xauth generate $DISPLAY . trusted

but I get the same error. I also found this script on the web:

#!/usr/local/bin/perl

randomkey=`perl -e 'for (1..4) {
srand(time+$$+$seed);
printf("%4.5x", ($seed = int(rand(65536))));
}
print "\n";'`

xauth add `hostname`/unix:0.0 . $randomkey
xauth add `hostname`:0.0 . $randomkey

This scrip does create the /.Xautority file, but I still get the "Invalid MIT-MAGIC-COOKIE-1 " error message when running "xhost +"

Any ideas?

I'm now at a dead end.....
((((
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0