问题描述:
Connecting to 192.168.1.254:22...
Connection established.
Escape character is '^@]'.
Last login: Fri Aug 24 17:51:17 2012 from 192.168.1.254
总是在此处要等待十几秒才出现登陆成功的提示窗口,并且有如下报错。
/usr/bin/xauth: timeout in locking authority file /home/webuser/.Xauthority
-bash-3.2$
解决办法:
这可能手工添加用户时,用root给此用户建立宿主目录的原因
[root@localhost ~]# ls -l /home/
total 4
drwxr-xr-x 3 root root 4096 Aug 21 11:19 webuser
[root@localhost ~]# chown webuser:root /home/webuser
[root@localhost ~]# chmod 700 /home/webuser/
[root@localhost ~]# ls -l /home/
total 4
drwx------ 3 webuser root 4096 Aug 21 11:19 webuser
退出重新登陆即正常。
转载于:https://blog.51cto.com/linuxtro/973926