5
2
I have an issue on all new installs of CentOS 6.2 on my network. Connecting to remote machines using X11 gui software fails for reasons associated with the xauth. I'm not sure how to diagnose but have narrowed it down to the following:
- gdm can't properly authenticate with remote host
- XAUTHORITY is set to a local path not available on the remote machine
- there is no .Xauthority file in the local user home dir
- missing MIT-MAGIC-COOKIE-1
Here are some logs:
/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
I'm sure this is an easy thing to address.
Things I tried that were unsuccessful:
- sadly gdmsetup is not part of EL6
- configured /etc/gdm/PostLogin to copy $XAUTHORITY to $HOME/.Xauthority (NFS mounted home directories)
- explicitly created /etc/sysconfig/desktop with DISPLAYMANAGER=GNOME & DESKTOP=GNOME
- tried different combinations of xinit and xauth
Hopefully someone can help diagnose and solve this problem. As visible in the logs, I'm without clusterssh as a result which is an unfortunate thing given I use it daily.
Does it work after running the command
xauth + 127.0.0.1
? – Jeremy W – 2012-06-13T18:06:28.317No I have posted the solution below. It was tricky to track down but simple in the end. It's definitely one to remember for future installs. – robertmoggach – 2012-06-14T01:59:36.400
solution i posted was actually NOT the solution... but I've now posted the solution which was related to the system Xresources file. Operator error. – robertmoggach – 2012-10-15T16:45:35.347