pablo
By:
pablo

timeout in locking authority file /home/username/.Xauthority

June 8, 2013 95.6k views
Whenever I ssh in to my droplet (puTTY), Ubuntu 12.04 spits out: /usr/bin/xauth: timeout in locking authority file /home/username/.Xauthority Does anyone know how I should address this? Thanks!
1 comment
  • Hola Pablo,

    Esto tratando de instalar en ubuntu un desktop. Estoy usando puTTY para conectarme a un server con ubuntu 14.04.
    xauth: timeout in locking authority file /home/ubuntu/.Xauthority
    I did:

    1 ) cd /home/ubuntu
    mv .Xauthority .Xauthority.old
    touch .Xauthority
    SUDO chown machine:machine .Xauthority

    2) cd /home/user
    ls -a -lh
    SUDO chown user:user .Xau*

    but still no good results, any idea?

12 Answers
Try running sudo rm /home/username/.Xauthority
@Kamal,

Thanks for the suggestion. Unfortunately, I tried that; rebooted the droplet, but the error message still pops up.

Do you have any other ideas?
Try this, Pablo: http://askubuntu.com/a/166115
Holy $H!T Kamal;

It worked like a charm!!!! You're a genius... or, a really good Googler! (Is that even a word?)

In all seriousness, thanks for taking the time to help me out.

-Pablo
Awesome!! Really glad to hear that :]
Tu maquina inicial le hayas puesto #xhost +
En tu maquina donde te conectas verifica
Que el /etc/selinux/config este como permissive o disable
Kamal Nasser had it right the first time, the only thing is that you have to do it from a local console. If you do it whilst ssh-ing in then any Xauth you create during that session will have the same ownership issues.

can anybody help me to get what does ?------ ?? ? ? ?selinux means in below
[oracle@relxmedia01 /]$ ls -lrth
total 14G
?--------- ? ? ? ? ? selinux
drwxr-xr-x 2 root root 4.0K Feb 17 2010 srv
drwxr-xr-x 2 root root 4.0K Feb 17 2010 media
drwxr-xr-x 18 root root 4.0K Oct 3 2011 usr
drwx------ 2 root root 16K Oct 18 2011 lost+found
drwxr-xr-x 3 root root 4.0K Oct 18 2011 tftpboot

can anybody tells me what does ? ----------- ? ? ? ?selinux means in below output

[oracle@relxmedia01 /]$ ls -lrth
total 14G
?--------- ? ? ? ? ? selinux
drwxr-xr-x 2 root root 4.0K Feb 17 2010 srv
drwxr-xr-x 2 root root 4.0K Feb 17 2010 media
drwxr-xr-x 18 root root 4.0K Oct 3 2011 usr
drwx------ 2 root root 16K Oct 18 2011 lost+found
drwxr-xr-x 3 root root 4.0K Oct 18 2011 tftpboot

can anybody tells me what does ? ----------- ? ? ? ?selinux means in below output

[oracle@relxmedia01 /]$ ls -lrth
total 14G
?--------- ? ? ? ? ? selinux
drwxr-xr-x 2 root root 4.0K Feb 17 2010 srv
drwxr-xr-x 2 root root 4.0K Feb 17 2010 media
drwxr-xr-x 18 root root 4.0K Oct 3 2011 usr
drwx------ 2 root root 16K Oct 18 2011 lost+found
drwxr-xr-x 3 root root 4.0K Oct 18 2011 tftpboot

can anybody tells me what does ? ----------- ? ? ? ?selinux means in below output

[oracle@relxmedia01 /]$ ls -lrth
total 14G
?--------- ? ? ? ? ? selinux
drwxr-xr-x 2 root root 4.0K Feb 17 2010 srv
drwxr-xr-x 2 root root 4.0K Feb 17 2010 media
drwxr-xr-x 18 root root 4.0K Oct 3 2011 usr
drwx------ 2 root root 16K Oct 18 2011 lost+found
drwxr-xr-x 3 root root 4.0K Oct 18 2011 tftpboot

Im having the same issue.

My username is bob and I did:

cd /home/bob
mv .Xauthority .Xauthority.old
touch .Xauthority
chown bob:bob .Xauthority

But nothing. Restarted vncserver, same error and now I cant use VNC.

Have another answer? Share your knowledge.