When trying to connect using ssh, if you see a similar error to the following in the status log/usr/X11R6/bin/xauth: error in locking authority file $HOME/.XauthorityThis issue typically occurs for one of several reasons. Out of disk space: If your user has a disk quota, or your disk is full, the xauth program will not be able to write to the.Xauthority file. Try freeing up disk space on your system. File permissions are wrong: The file permissions on.Xauthority must be 400 (read and write for user ONLY).
Any other file permission will cause the xauth program to reject the fileAs a final measure you can try deleting the.Xauthority file altogether. The file will be recreated the next time you log in with ssh.
Team,We heavily use ssh X11 forwarding. We nothing but routinely get this message on many users on the system:/usr/bin/xauth: timeout in locking authority file /home//.XauthorityThe 'bandage-fix' is to delete the users home dir (they don't really store anything there) and then recreate it and recreate the.Xauthority file in their home directory and chown it to them.
Chown the newly created directory to them as well.This however is a 'bandage' and not a fix. Please suggest a more permanent solution to this long outstanding issue that we have.Nothing has been written to the Xorg logs in months, standard messages in /var/log/secure.the environment is CentOS, ssh + X11 forwarding + Citrix, other systems have exactly the same environment and do not have this problem. Nothing in /var/log/messages.Regards,Kartik Vashishta.