I have a privileged user without home folder with ssh access. I try to do X forwarding but I get the message /usr/bin/xauth: error in locking authority file /home/user/.Xauthority If I don't have home folder logically .Xauthority doesn't exist. Is there a way to replace the location or tell xauth to use a different file?

  • If the user is privileged, use it to create the home directory. – user1686 Oct 14 '12 at 15:59

You can change the location of this file by setting the XAUTHORITY environment variable.

$ export XAUTHORITY=/tmp/.Xauthority_$USER

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.