我的网络上所有新安装的CentOS 6.2都有问题。使用X11 gui软件连接到远程计算机失败的原因与xauth相关。我不确定如何诊断,但已将其缩小到以下范围:
- gdm无法正确地使用远程主机进行身份验证
- XAUTHORITY设置为远程计算机上不可用的本地路径
- 本地用户主目录中没有.Xauthority文件
- 缺少MIT-MAGIC-COOKIE-1
这是一些日志:
/var/log/Xorg.0.log
[ 9273.858] AUDIT: Mon Jun 4 14:41:21 2012: 7778: client 20 connected from local host (
uid=0 gid=0 pid=8800 )
Auth name: MIT-MAGIC-COOKIE-1 ID: 496
[ 9273.870] AUDIT: Mon Jun 4 14:41:21 2012: 7778: client 35 connected from local host (
uid=0 gid=0 pid=8800 )
Auth name: MIT-MAGIC-COOKIE-1 ID: 496
[ 9274.072] AUDIT: Mon Jun 4 14:41:21 2012: 7778: client 20 disconnected
[ 9274.072] AUDIT: Mon Jun 4 14:41:21 2012: 7778: client 35 disconnected
[ 9277.236] AUDIT: Mon Jun 4 14:41:25 2012: 7778: client 20 connected from local host (
uid=0 gid=0 pid=8804 )
Auth name: MIT-MAGIC-COOKIE-1 ID: 496
[ 9277.248] AUDIT: Mon Jun 4 14:41:25 2012: 7778: client 35 connected from local host (
uid=0 gid=0 pid=8804 )
Auth name: MIT-MAGIC-COOKIE-1 ID: 496
[ 9277.277] AUDIT: Mon Jun 4 14:41:25 2012: 7778: client 20 disconnected
[ 9277.277] AUDIT: Mon Jun 4 14:41:25 2012: 7778: client 35 disconnected
在/ var / log / messages中
Jun 4 14:41:21 myhostname abrt[8801]: saved core dump of pid 8800 (/usr/bin/perl) to /var/spo
ol/abrt/ccpp-2012-06-04-14:41:21-8800.new/coredump (18776064 bytes)
Jun 4 14:41:21 myhostname abrtd: Directory 'ccpp-2012-06-04-14:41:21-8800' creation detected
Jun 4 14:41:21 myhostname abrtd: Package 'clusterssh' isn't signed with proper key
Jun 4 14:41:21 myhostname abrtd: Corrupted or bad dump /var/spool/abrt/ccpp-2012-06-04-14:41:21-8800 (res:2), deleting
我确信这是一个容易解决的问题。
我尝试的事情都没有成功:
- 遗憾的是gdmsetup不是EL6的一部分
- 配置/ etc / gdm / PostLogin将$ XAUTHORITY复制到$ HOME / .Xauthority(NFS挂载的主目录)
- 使用DISPLAYMANAGER = GNOME&DESKTOP = GNOME显式创建/ etc / sysconfig / desktop
- 尝试了xinit和xauth的不同组合
希望有人可以帮助诊断和解决这个问题。在日志中可见,因为我每天都使用它,所以我没有使用clusterssh,这是一个不幸的事情。
xauth + 127.0.0.1
?