[FreeNX-kNX] nxauth problem

David Parish dparish at gmail.com
Tue Apr 25 14:00:13 UTC 2006


I am running the nxclient on windows.  It works successfully on most windows
machines, but is failing on mine and a co-workers.  We both have the same
windows image so I am confident it is something machine/install specific.
The gui error I see is that it just hangs at Setting up x-windows
environment.  I looked at the runlog and see we are failing here:

[Tue Apr 25 08:22:11 2006]: Utility::addCookieToAuthFile: Starting nxauth
[C:\PROGRA~1\NXCLIE~1/bin/nxauth -i -f
/cygdrive/C/DOCUME~1/dparish/.Xauthority add parrish:0 MIT-MAGIC-COOKIE-1
a7593ee4ea184c9f216b2f9626eb3896]
[Tue Apr 25 08:22:11 2006]: Trying the XAUTHORITY environment variable with
value [/cygdrive/C/DOCUME~1/dparish/.Xauthority].
[Tue Apr 25 08:22:11 2006]: Trying the default value
[C:\DOCUME~1\dparish/.Xauthority].
[Tue Apr 25 08:22:11 2006]: Utility::getXAuthorityFilePath:
/cygdrive/C/DOCUME~1/dparish/.Xauthority
[Tue Apr 25 08:22:11 2006]: Trying the XAUTHORITY environment variable with
value [/cygdrive/C/DOCUME~1/dparish/.Xauthority].
[Tue Apr 25 08:22:11 2006]: Trying the default value
[C:\DOCUME~1\dparish/.Xauthority].
[Tue Apr 25 08:22:11 2006]: Utility::getXAuthorityFilePath:
C:\DOCUME~1\dparish/.Xauthority
[Tue Apr 25 08:22:11 2006]: LoginDialog::startNXWin: FATAL ERROR: cannot add
cookie to authfile.


I then ran nxauth by hand on my machine and get:

nxauth:  creating new authority file .Xauthority
Ignoring locks on authority file .Xauthority
Ignoring locks and writing authority file .Xauthority
nxauth:  unable to link authority file .Xauthority, use .Xauthority-n

When I run it by hand on a working machine it correctly generates the
.Xauthority file.

I double checked and I do not have any other copies of cygwin1.dll in my
system.

I reviewed the source for nxauth and found where the error occursin
process.c, but that did not point me to the resolution.  Here is the code
block involved:

#if defined(WIN32) || defined(__UNIXOS2__)
        if (rename(temp_name, xauth_filename) == -1)
#else
        if (link (temp_name, xauth_filename) == -1)
#endif
        {
            fprintf (stderr,
             "%s:  unable to link authority file %s, use %s\n",
                 ProgramName, xauth_filename, temp_name);
        } else {
            (void) unlink (temp_name);



I looked all over the nomachine site and did not see any documentation on
the problem.

Any hints or suggestions would be greatly appreciated.

On the machines where this works I'm amazed by this product.  It is fast and
quite affective.

Thanks,
-Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20060425/0dc340e1/attachment.html>


More information about the FreeNX-kNX mailing list