MIT-MAGIC-COOKIE-1 problem
Alexander Gottwald
Alexander.Gottwald@informatik.tu-chemnitz.de
Tue May 14 19:39:00 GMT 2002
On Tue, 14 May 2002, Sam Edge wrote:
> I'd be grateful if someone could point me to information about getting
> xauth working with Cygwin/XFree86 at all.
>
> Particularly, how do I generate a file suitable for the "-auth"
> parameter of XWin.exe? The documentation I've been able to find all
> relies on xdm setting things up and doesn't really explain exactly
> what it does. (xdm itself won't run because it expects to be root and
> it creates files with colons in their names.)
The command
dd if=/dev/urandom count=1|md5sum|cut -f1 -d\ |sed -e 's/^/add :0 . /'|xauth -q
was sometime ago discussed on this list. But I have not found a mail, if
it was successful used. Just search the archives for md5sum and ask
the original poster, if it has worked. *g*
> I've tried generating a file using xauth but no matter what I do the
> server refuses connections if the file is non-zero in size but allows
> any access if it's empty.
Xdm seems to generate an entry
#ffff##: MIT-MAGIC-COOKIE-1 d46c9162da29d8b31b98e7657cdc926f
Justed tested this:
$ dd if=/dev/urandom count=1|md5sum|cut -f1 -d\ |sed -e 's/^/add :0 . /'|xauth -f server.auth
$ xauth -f server.auth list
lupus/unix:0 MIT-MAGIC-COOKIE-1 7f4c9e80cd29780cfa64c656c7e0ef15
$ XNest -auth server.auth :1
$ xauth add :1 MIT-MAGIC-COOKIE-1 7f4c9e80cd29780cfa64c656c7e0ef15
$ xterm -display :1.0
and it worked
bye
ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723
More information about the Cygwin-xfree
mailing list