Problem:
When connected using the -X or -Y option with ssh, the following error is reported.
/usr/bin/xauth: timeout in locking authority file /home/<user>/.Xauthority
Cause:
It is in fact caused by incorrect SELinux setting.
Solution:
# ls -alZ
drwxr-xr-x. uid gid unconfined_u:object_r:home_root_t:s0 <user>
# chcon unconfined_u:object_r:user_home_t:s0 <user>
# ls -alZ
drwxr-xr-x. uid vid unconfined_u:object_r:user_home_t:s0 <user>
Then login again, the xauth will create the .Xauthority automatically.
When connected using the -X or -Y option with ssh, the following error is reported.
/usr/bin/xauth: timeout in locking authority file /home/<user>/.Xauthority
Cause:
It is in fact caused by incorrect SELinux setting.
Solution:
# ls -alZ
drwxr-xr-x. uid gid unconfined_u:object_r:home_root_t:s0 <user>
# chcon unconfined_u:object_r:user_home_t:s0 <user>
# ls -alZ
drwxr-xr-x. uid vid unconfined_u:object_r:user_home_t:s0 <user>
Then login again, the xauth will create the .Xauthority automatically.
No comments:
Post a Comment