LCD computing troubleshooting
This page presents several tips on several issues found when using SLC6 or SLC5
timeout in locking authority file /home/username/.Xauthority
When logging on a machine with ssh (e.g. from lxplus to your desktop PC) with X11 forwarding, you get an error
/usr/bin/xauth: timeout in locking authority file /home/username/.Xauthority
This happens because of selinux. You need to check the status of selinux
sestatus
should give you in the case of the presence of the error something like
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
As you see the current status is
enforcing
, and that's what is causing the problem. You need to become root with
su
then run
setenforce 0
and this should then make the output of
sestatus
look like
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
Now you should be able to log on the machine using ssh.
Source:
http://stackoverflow.com/questions/8154963/ssh-x11-forwarding-wont-work