Problem with DHCP, /etc/hosts and GNOME
Satish Balay
balay at fastmail.fm
Fri Apr 9 01:01:59 UTC 2004
On Thu, 8 Apr 2004, Rick Stevens wrote:
>
> The problem is that xdm creates the initial cookie based on the
> hostname. All additional auth sessions base off that cookie. If you
> change the hostname, then the initial cookie is no longer valid.
>
> I think the command you used was "xauth generate :0 ."
Ok. This works only if invoked before the hostname is changed.
xauth generate newname/unix:0 MIT-MAGIC-COOKIE-1
What I've used is more like - (works after the hostname is chaged as well)
xauth list | grep 'oldhostname/unix:0' | sed -e 's/oldhostname/newhostname/' | xargs xauth add
Satish
More information about the fedora-list
mailing list