LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   xauth.... time out locking file .Xauthority (http://www.linuxquestions.org/questions/slackware-14/xauth-time-out-locking-file-xauthority-260972/)

DraaX 11-30-2004 12:20 PM

xauth.... time out locking file .Xauthority
 
I am running Slack 10 and Fluxbox 0.9.10. Everything has been working just fione untill today when I rebooted my pc from Windows XP Pro (dual boot in case you haven't figured that out yet). It booted just fine but after I logged into cli and attempted "startx" just like I always do, it hung for 20 sec or so and then I get the error

xauth time out locking /home/draax/.Xauthority file (not exact error because I am not on my box, I will edit this to the exact error when I get home. This is almost exactly what it says though.)

Then it will repeat this about 4 times and then finally log into Flux. This is frusterating because it takes so long to log in now. Does anyone have any idea as to what might be causing this? If so, any ideas as to how to fix it.

Vincent_Vega 11-30-2004 02:38 PM

chown -R you.group /home/<your_home_directory> as root

DraaX 11-30-2004 02:43 PM

Thank you for the fast reply Vincent_Vega.

Quote:

Originally posted by Vincent_Vega
chown -R you.group /home/<your_home_directory> as root
I will try this as soon as I get home to my box. For the "you.group" I am not sure what I should put here. I am assuming "you" is my user, which would be draax.... I do not know what to put for "group". Also, what would have caused this? Why all of a sudden is this happening when it has never happened before and everything worked fine?

jonr 11-30-2004 03:17 PM

Quote:

Originally posted by DraaX
Thank you for the fast reply Vincent_Vega.



I will try this as soon as I get home to my box. For the "you.group" I am not sure what I should put here. I am assuming "you" is my user, which would be draax.... I do not know what to put for "group". Also, what would have caused this? Why all of a sudden is this happening when it has never happened before and everything worked fine?

Just make the "group" name be your name, too. That should fix your problem. I had the exact same thing happen to me a few months ago and it bothered me no end...don't remember how I fixed it, but I just experimented till I fixed it myself--the way described here.

DraaX 11-30-2004 03:20 PM

Thanks a bunch jonr. I will try this as soon as I get home and post results.

jonr 11-30-2004 03:28 PM

I've been puzzling ever since it happened to me as to what could have caused it. Like you, I'm unaware of doing anything unusual that would have changed permissions on the authority files.

Does anybody have an idea what does cause this kind of error? Or maybe I should say how a user can without knowing it may change permissions on some important files?

DraaX 11-30-2004 04:23 PM

Quote:

Originally posted by jonr
Just make the "group" name be your name, too. That should fix your problem. I had the exact same thing happen to me a few months ago and it bothered me no end...don't remember how I fixed it, but I just experimented till I fixed it myself--the way described here.
I tried this and get

"chown: 'draax.draax' : invalid group"

I am unsure of what to put for the group. Any ideas?

jonr 11-30-2004 04:42 PM

Quote:

Originally posted by DraaX
I tried this and get

"chown: 'draax.draax' : invalid group"

I am unsure of what to put for the group. Any ideas?

It ought to work...as far as I know. Hmm. Have you got Midnight Commander on your
setup? If you select a directory and then choose "chown" from the "File" commands,
it will show you all the available owners and groups.

Or you could always put "root" for the group and see if that works. I thought
each user always automatically got a group by the same name as the user, but I guess
not.... :confused:

Also worth trying would be just

chown -R draax .

as root while in your home directory.

jonr 11-30-2004 04:53 PM

WHOA! My mistake...
 
...I'm sorry.

The format is:

chown -R draax:draax .

with a colon, not a dot.

Try with a colon and see if it doesn't work.

I shoulda tested first.
:tisk:

DraaX 11-30-2004 05:02 PM

Re: WHOA! My mistake...
 
Quote:

Originally posted by jonr
...I'm sorry.

The format is:

chown -R draax:draax .

with a colon, not a dot.

Try with a colon and see if it doesn't work.

I shoulda tested first.
:tisk:

Tried this and it did not work. Same error as before.

Tried "chown -R draax /home/draax" and this seems to have solved my problem! Thanks so much for helping me! I appreciate so much.

jonr 11-30-2004 05:32 PM

Re: Re: WHOA! My mistake...
 
Quote:

Originally posted by DraaX


Tried "chown -R draax /home/draax" and this seems to have solved my problem! Thanks so much for helping me! I appreciate so much.

Well, I sure offered clumsy help, but glad you got your problem fixed.

DraaX 11-30-2004 05:54 PM

Re: Re: Re: WHOA! My mistake...
 
Quote:

Originally posted by jonr
Well, I sure offered clumsy help, but glad you got your problem fixed.
:D Well johnr, you actually gave me 'correct' advice in saying:

Quote:

Originally posted by jonr
Also worth trying would be just

chown -R draax .

as root while in your home directory.


Just not the 'exact' command. Which i figured out with your help.

So thanks again for the help!!!

jonr 11-30-2004 05:55 PM

Re: Re: Re: Re: WHOA! My mistake...
 
Quote:

Originally posted by DraaX
:D Well johnr, you actually gave me 'correct' advice in saying:




Just not the 'exact' command. Which i figured out with your help.

So thanks again for the help!!!

You should be a diplomat. :D

Vincent_Vega 11-30-2004 10:32 PM

I assume your group is 'users'. That would be standard for what I'm using. If you wanted to make a new group called "draax" and add yourself to it, that's easy too.
To see what group you're in, type "groups" and it will list all of the groups you belong to.
<edit>
and the proper command for you to use is either:
chown -R draax.users /home/draax
or
chown -R draax:users /home/draax
assuming you're part of the 'users' group. Either the '.' or the ":" delimiter is fine. They both do the same thing for that command.

jonr 11-30-2004 11:10 PM

Aftershock...
 
Guess what happened to me about ten minutes after reading the last post in this thread?

You guessed it. No authority to run X.

This time I had to jump through countless hoops with my .bash_profile and .bashrc files to get it
fixed, and I have NO idea what happened to screw them up in the first place.

It wasn't a permissions problem this time.

Talk about coincidences, though.


All times are GMT -5. The time now is 07:25 PM.