LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2004, 11:19 PM   #1
laudre
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
X auth problem


I'm not really a newbie (been using Linux part-time for about four years and full-time for two years), but as much of my depth of knowledge stems from when I've screwed things up and had to put them back together again, I'm thinking this is a newbie question in one of the arenas I haven't yet plumbed. As background info, I'm running Mandrake 9.2 (download version) with Gnome as my GUI.

Anyway, just recently -- as in, the past week or so -- I've started having problems with x authorization suddenly ceasing to function. I go fine for a few hours (anywhere eight hours or so to a day or two), then suddenly any attempt to open a new application starts failing -- I'll hit the icon in the panel and it'll obviously attempt to start (it'll trigger the watch mouse icon and get a Starting... panel in the task bar but then nothing further). Attempting to bring pretty much any application (Galeon, Sylpheed, gEdit, etc.) at first gave me an unable to open display 0:0 error, and this last time gave me MIT_MAGIC_COOKIE_1 error. If I restart X I can work again fine, but, as I said, it starts happening again (it took about a day this last time to start happening).

Googling around on the error messages clarified what I'd already begun to suspect: that it's an auth problem with the X server. I am, however, stumped on two fronts: I can't figure out why this starts happening hours into an X session, especially since I've been running 9.2 without a hiccup for a couple of months now; and, how can I kludge my way around it when it does happen, until I do figure it out (i.e., so I don't have to restart X)?

Thanks in advance.
 
Old 04-01-2004, 03:22 AM   #2
Nuk
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: Debian, Gentoo, Ubuntu
Posts: 10

Rep: Reputation: 0
Hi, not sure about why the problem starts by itself, but I had an xauth problem where I had the unable to open display :0.0 error, where my accounts somehow lost their permissions to access the display. Solved it with:

#xauth merge ~user/.Xauthority

where user is the username you want to add the permissions for.
Hope that helps,
Nuk
 
Old 04-03-2004, 06:31 PM   #3
laudre
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Nuk
Hi, not sure about why the problem starts by itself, but I had an xauth problem where I had the unable to open display :0.0 error, where my accounts somehow lost their permissions to access the display. Solved it with:

#xauth merge ~user/.Xauthority

where user is the username you want to add the permissions for.
Hope that helps,
Nuk
Had it happen again (actually, twice since this was posted), and I tried the xauth command (which I'd seen on other threads on this general subject Google turned up), and it fails to fix the problem. Nor have I been able to isolate anything I can specifically associate with it -- I've had it happen to me in the middle of a session, or after locking and unlocking the screen.

Every message I get lines up with it being an authentication problem, but I haven't been able to figure out any reason for it to start happening by itself in the midst of a session, nor have I been able to find another example of it in my googling.
 
Old 04-03-2004, 06:41 PM   #4
laudre
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by laudre
Every message I get lines up with it being an authentication problem, but I haven't been able to figure out any reason for it to start happening by itself in the midst of a session, nor have I been able to find another example of it in my googling. [/B]
Okay, I think I've figured out what is happening, but I haven't been able to figure out what I can do about it.

Basically, I've got a cable modem, and my ISP, for some reason, has been, from time to time, spontaneously changing the domain name of my machine recently (I think they're working on a new naming scheme for the network). Is there some way I can reconfigure xauth to go by IP address, or that I can add a new entry or somesuch when the domain name gets changed on me? I've read through the man file, and it's rather unclear.
 
Old 04-23-2004, 04:56 PM   #5
javpra
Member
 
Registered: Nov 2003
Distribution: FreeBSD/Gentoo/Debian
Posts: 52

Rep: Reputation: 19
Good day to all,

I've been having a similar problem. I recently installed slackware 9.1 and am running a Gnome 2.4.0. I just added a regular user account which for some reason defaulted to a home directory of "/" rather than "/home/username". When I attempt to run "startx" as this user I recieve an error saying "xauth: timeout in locking authority file //.Xauthority". I attempted the above "xauth merge ~user/.Xauthority" and am still not able to start X. I also recieved an error from Gnome saying it could not create a file in "/home/username". I attempted "useradd -d /home/username username" and it said "user already exists". I tried "useradd -D -b /home/username username" and still didn't work. I also used tried usermod and could not get the home directory transferred to /home/username. I am sure it is something I am doing any light on the situation would be appreciated. Would the home directory even be the cause for the xauth error? Thanx in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when use SMTP auth. serchen Linux - Software 0 09-24-2005 09:53 AM
Samba auth problem Daniboy Linux - Software 5 09-19-2005 02:50 PM
Send Mail auth problem Bilb Linux - Software 10 08-10-2005 08:01 AM
freak squid auth problem varun_saa Mandriva 0 01-14-2005 09:02 PM
Rsync Auth user problem Chris3084 Linux - Software 3 08-17-2003 09:02 PM


All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration