xauth: timeout in locking authority file ~/.Xauthority?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
xauth: timeout in locking authority file ~/.Xauthority?
Hello all!
This is my first post to this forum, but I have learned so much already. I have been using slackware for about a year, but yesterday I put 8.1 on the machine, with few problems. This time I decided to get my new wireless NIC installed, and that, too, went without a hitch. (My comp is a Dell Inspiron laptop, by the way).
So, here's my question. Yesterday, I created a user account for myself, Bryan, and set up my fluxbox prefs and such, no problem. While logged in as Bryan, I used my wireless network, and I also suspended the computer (kapmd running) for a little while. THEN, last night, I tried startx from my Bryan account, X started very slowly, and gave me this error 4 times before starting, and once as it exited:
xauth: timeout in locking authority file /home/bryan/.Xauthority
My root account started X no problem. Also, under Bryan I could do xinit and then do fluxbox with no problem. I did not have my wireless NIC in, by the way.
So, I created another user, Bibb, which generated a fresh copy of the .Xauthority file, and had no trouble starting X.
THEN, this morning my Bibb account experienced exactly the same problem. Even after fluxbox started, things weren't working right, as I expected. Mozilla would not boot, for example. I am currently connected through the network, typing this message in my third personal account in 2 days, and it's working fine.
Any ideas? Do I need to create a new account each time I use my computer? ;-)
Turns out, when I installed some software to my home directory, I had screwed up the ownership and permissions settings, so that I had no write access to my own home directory. Not optimal, to be sure.
The problem was that xauth could not modify the .Xauthority file to "lock" it, hence the error message.
Just thought I'd update, in case anyone's interested.
Got the same "timeout in locking ...." and finally figured out
I was logging in using "ssh -Y" when no X-server was started on
the destination host. My choices are, since I'm the admin,
boot the machine in RunLevel-5 (X) or just do plain "ssh".
(Oh, and it took a long time to complete login process.)
Was getting the same "time out while trying to lock .Xauthority .."
Turns out that selinux was set to "Enforcing".
One either needs to change settings on $HOME
directories (I had created them manually) or change
the security level to "Permissive" or "Disabled"
in /etc/selinux/config and re-boot.
Rather than disabling selinux, one can also change the context of the user's home directory.
To find out what the context is, use the -Z option on ls. Note that for a directory, you may also need to use -d option. For example, to get the context of my home directory, I did: "ls -Zd $HOME" and got the following:
I would not change directory context arbitrarily. For example, if you have an Apache server running from /var/www and you've created a user apache whose home directory is /var/www, you don't want to change the context (which was
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.