When logging in to CentOS as a non-root user, if it is found to be slow and the following message pops up:
/usr/bin/xauth: timeout in locking authority file /home/ops/.Xauthority
原因:这是是因为在创建用户时,用户家目录属组和属主不对,或者在使用的时候不小心把用户家目录属主或者属组改了导致的
Solution : Just modify the owner and group of the user's home directory. When you log in again, a new file like this will be created. The next time you log in will be fast.
For example, I use the ops user:
chown ops:ops /home /ops