[CLUE-Tech] Xauth problems

Ronald Brink rbrink at 3roses.d2g.com
Sat Sep 8 10:42:35 MDT 2001


Have you tried in addition to setting your DISPLAY variable on the linux box
pointing to your nt IP, also running "xhost {ip}" or "xhost +" (as root on
the console) to allow client connections?  That may fix your problem.
Normally I don't "take over the console" I just run whatever X progam; i.e.
xterm.

-----Original Message-----
From: clue-tech-admin at clue.denver.co.us
[mailto:clue-tech-admin at clue.denver.co.us]On Behalf Of Dave Anselmi
Sent: Friday, September 07, 2001 10:13 PM
To: clue-tech at clue.denver.co.us
Subject: Re: [CLUE-Tech] Xauth problems


Sorry Rick, you lost me.  Seems to me you want xterm to run on Redhat and
display on NT,
right?  When I used to do that with Omni-X, there was no Xauth involved.

Omni-X had a dialog that you could put a command line in (we used rexec to
execute it, but
I think there were rsh and telnet methods too).  You put the xterm command
line in the
dialog, including all the options like display IP (omni-x can fill that out
automatically).

When you run that command line from omni-x, it asks you for a password (for
rexec) and
runs the command on the server.  So xterm gets run as you, and displays on
NT (I don't
think omni-x does any security - or is that the problem you're having?)

So I don't understand where your script (below) is used.  I don't think
you're running the
xterm on NT and displaying on Redhat, are you?  (How do you run an xterm on
NT?  I guess
it could be done, but I never seen it.)

Sorry I don't have omni-x handy to be more specific.  One final guess, in
your script
below, should $display be $DISPLAY?

Dave

Rick Sipin wrote:

> To any Xauth  / xinit guru out there,
> I've got a small and secure network, and am trying to configure a Windows
NT Client to
> be able to run X sessions on one of my Redhat 7 servers. I'm running into
a dead-end
> on where I need to configure the server to allow 'console ownership' to a
particular
> user. When I use the standard Redhat shell program 'startx' to try and
launch a remote
> X session, it looks like its trying the recommended approach, using xauth
and mcookie
> to generate a new cookie for my .Xauthority file, but I continue to get
the following
> error -
>
> "Authentication failed - cannot start  S server"
> "Perhaps you do not have console ownership"
>
> I'm using Omni-X's PC-X server, and starting an xterm session, which opens
> successfully, with the DISPLAY variable set to my PC client machine
successfully.
>
> The relevant lines of my xstart script are as follows:
> mcookie=`mcookie`
> xauth add $display . $mcookie
> xinit -- -auth "$HOME/.Xauthority"
>
> It appears that either I'm not getting the current cookie into my
Xauthority file, or
> that I don't have the right arguements here, or have something else
misconfigured. Any
> pointers would be appreciated.
>
> Thanks

_______________________________________________
CLUE-Tech mailing list
CLUE-Tech at clue.denver.co.us
http://clue.denver.co.us/mailman/listinfo/clue-tech





More information about the clue-tech mailing list