xauth:timeout in locking authority file /home/ur/.serverauth

General support questions
RalfD
Posts: 7
Joined: 2014/08/07 15:17:05

xauth:timeout in locking authority file /home/ur/.serverauth

Post by RalfD » 2014/08/07 15:31:09

Hi all,

I am running CentOS 6.5. When I run

Code: Select all

startx
I get these errors:

Code: Select all

xauth:  timeout in locking authority file /home/ur/.serverauth.8280
xauth:  timeout in locking authority file /home/ur/.Xauthority
xauth:  timeout in locking authority file /home/ur/.Xauthority
xauth:  timeout in locking authority file /home/ur/.Xauthority
xauth:  timeout in locking authority file /home/ur/.Xauthority


Fatal server error:
PAM authentication failed, cannot start X server.
        Perhaps you do not have console ownership?

(EE)
Please consult the CentOS support
         at http://wiki.centos.org/Documentation for help.
(EE)
giving up.
xinit:  Connection refused (errno 111):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
xauth:  timeout in locking authority file /home/ur/.Xauthority
But I can still run xeyes, xterm, firefox..
I am not the root user, hence cannot run any "sudo" codes.
what could be the problem? And is it possible to solve this as a regular user?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: xauth:timeout in locking authority file /home/ur/.server

Post by gerald_clark » 2014/08/07 17:41:44

How are you connected to the server? ssh?
You cannot run startx from a remote session.

RalfD
Posts: 7
Joined: 2014/08/07 15:17:05

Re: xauth:timeout in locking authority file /home/ur/.server

Post by RalfD » 2014/08/07 17:45:14

No, I'm actually connected directly (locally) not Remote.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: xauth:timeout in locking authority file /home/ur/.server

Post by gerald_clark » 2014/08/07 17:52:36

If you can run xeyes and xterm, then you are already running X, so why are you trying to run startx?

RalfD
Posts: 7
Joined: 2014/08/07 15:17:05

Re: xauth:timeout in locking authority file /home/ur/.server

Post by RalfD » 2014/08/07 18:05:16

Because when I ssh to the server from different computer it gives me the message

Code: Select all

/usr/bin/xauth : timeout in locking authority file /home/ur/.Xauthority

So I googled some and I read that the problem could be due to ownership issues.
And that I need to delete the ".Xauthority" file in my home folder and run
"startx" so that "startx" will generate the ".Xauthority". So I run "startx"
to generate the ".Xauthority" file.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: xauth:timeout in locking authority file /home/ur/.server

Post by gerald_clark » 2014/08/07 18:09:22

I asked if this was on an ssh login and you said no.
Now you sayt it is.
What is the person on the ssh login running that generates this error?

RalfD
Posts: 7
Joined: 2014/08/07 15:17:05

Re: xauth:timeout in locking authority file /home/ur/.server

Post by RalfD » 2014/08/07 18:23:22

OK. I didn't make my answer clear enough. Let me try..

Yesterday, I was trying to log into the server using ssh.
But it gives me the message :

Code: Select all

/usr/bin/xauth : timeout in locking authority file /home/ur/.Xauthority
So I was googling and I read that I should try this..
"from the local machine:
delete .Xauthority
run startx"

So today, on local machine I deleted .Xauthority file then I run startx.
But startx gave me the error I stated earlier.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: xauth:timeout in locking authority file /home/ur/.server

Post by TrevorH » 2014/08/07 18:29:40

You don't need to use startx, just delete the .Xauthority file and retry what you were doing over your ssh X11 forwarded session.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: xauth:timeout in locking authority file /home/ur/.server

Post by gerald_clark » 2014/08/07 18:34:20

We can't help with generic descriptions of things you think are not working.
We need exact commands run, and exact messages.
Cut and paste is the best method to avoid typos.

logout of the X user on the console of the servver and log back in so the file will be generated with the correct context.

Then try again at the remote machine and post exact commands and responses.

RalfD
Posts: 7
Joined: 2014/08/07 15:17:05

Re: xauth:timeout in locking authority file /home/ur/.server

Post by RalfD » 2014/08/07 18:53:21

I deleted .Xauthority file and I logged out of X user.
Then I logged in. But the file is not generated.

Is there any command that I can run to find out the exact problem?

Post Reply