Friday, January 30, 2015

[Quick Tips]: /usr/bin/xauth: /home/dan/.Xauthority not writable, changes will be ignored

$ssh -Y example.com
/usr/bin/xauth:  /home/dan/.Xauthority not writable, changes will be ignored

$ssh -X example.com
/usr/bin/xauth:  error in locking authority file /home/dan/.Xauthority



Solutions
If you have the same problem, simply run chown as root to change the ownership back to the user. At the terminal as root, go to /home/user
# cd /home/user
list all files with ownership
# ls -a -lh
change file/files ownership to your user
# chown user:user .Xau*

No comments: