LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2011, 10:46 AM   #1
mhatrey
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Rep: Reputation: 0
error in locking .Xauthority file ... Continued from previous post


Since the post was marked [solved] I thought of creating a new post.

Ok. I agree deleting .Xauthority files work, but thats not a good solution. I mean, everytime I have to run any X forwarding application I have to delete the .Xauthority file. Here is my scenario

The applications that I want to run are on Linux Server [NFS] and the client machines [CIFS] that are having problem in locking the .Xauthority files are Macs which share the same domain as that of client solaris machine. i.e. The home directory of particular user on Solaris & the home directory of that user on Mac have same contents.

When I ssh -X from Solaris to the server, everything works fine, no error messages.
When I ssh -X from MACs to the server, I get the following warning messages.

Code:
/usr/X/bin/xauth: error in locking authority file /home/user/.Xauthority
/usr/X/bin/xauth is the path on the server. If I try to break the lock by sudo /usr/X/bin/xauth -b quit, I get the following error
Code:
xauth: timeout in locking authority file /home/user/.Xauthority
When I ssh -X from any my MacBookPro to the server,

Code:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
I have checked sshd_config on both the server and the Mac clients, there is nothing that seems wrong, but if you guys have insights then please share
 
Old 04-27-2011, 02:27 PM   #2
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Rep: Reputation: 15
I had a similar problem a while ago, but the error locking the .Xauthority file wouldn't even let me start up x. What I did was drop to command shell, su to root, and chown -r the home directory to myself.
I guess somehow I gave ownership of my home folder to someone else so I couldn't change it at all.
Try the chown idea and let us know if it solves anything.
 
Old 04-27-2011, 08:44 PM   #3
mhatrey
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thank daweefolk,

But the home directory is already owned by the "user" who logs in.

Somehow I believe this might be due to how NFS and CIFS communicate.
 
Old 05-16-2011, 10:33 AM   #4
mhatrey
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I got this solved. The solution seems very silly and I should had checked long ago.

Solution: I updated the version of X11 app on the client MAC to the latest and it stopped creating those .Xauthority-c files.

---

If it helps, with the older version of the X11 apps, I was able to get it done by unchecking the “Enable Authentication” from the preferences of X11 app.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xauth: timeout in locking authority file //.Xauthority v@ny@ Slackware 14 11-20-2013 05:52 AM
xauth: timeout in locking authority file ~/.Xauthority? otbibb Linux - Software 6 08-28-2013 01:42 PM
[SOLVED] error in locking Xauthority -- not sure what this means mark_alfred Linux - General 2 04-27-2011 09:18 AM
xauth: timeout in locking authority file //.Xauthority karlrb Linux - Software 2 10-26-2006 06:53 AM
xauth.... time out locking file .Xauthority DraaX Slackware 17 12-01-2004 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:15 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
Open Source Consulting | Domain Registration