* How to use xauth.
@ 1994-06-22 19:11 R. David Murray
1994-06-23 15:35 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: R. David Murray @ 1994-06-22 19:11 UTC (permalink / raw)
How do you use xauth under osf 1.3? I tried a simple script that does
xauth extract - $DISPLAY | rsh $1 -l $name /usr/bin/X11/xauth merge -
where $1 is the target machine and $name is the target userid. But when
I do xauth list on the target machine, it shows the display name as (eg)
newpisgah.keene.edu/unix:0
and when I try to start a client it complains that the server has refused
the connection.
I must be doing something simple wrong, but what? Thanks for any help.
--David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to use xauth.
1994-06-22 19:11 How to use xauth R. David Murray
@ 1994-06-23 15:35 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 1994-06-23 15:35 UTC (permalink / raw)
In article <2ua2cq$kel@newpisgah.keene.edu>,
R. David Murray <rdmurray@keene.edu> wrote:
> How do you use xauth under osf 1.3? I tried a simple script that does
>
> xauth extract - $DISPLAY | rsh $1 -l $name /usr/bin/X11/xauth merge -
>
> where $1 is the target machine and $name is the target userid. But when
> I do xauth list on the target machine, it shows the display name as (eg)
Well, it has nothing to do with osf/1 1.3 (it's generic X).
The X server has two Xcookies to access the display depending on how
you access it: there's a cookie for local connections (through unix:0
or :0) and another one for all other connections.
In the xauth listing, the local connection appears as
"machine.name/unix:0". So what you're doing is passing the local key,
which is useless since the remote machine has to use a "normal"
connection. This happens because you use "$DISPLAY" which generally
happens to be ":0" (and hence selects the cookie for local
connections).
Just use
xauth extract - `hostname`:0 | ...
This will select the correct cookie for remote
connections. Alternatively, you can arrange to check that your DISPLAY
never uses ":0" but always the full machine name (this *may* slow down
X a little bit, but it's not sure), of course.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-06-23 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-22 19:11 How to use xauth R. David Murray
1994-06-23 15:35 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox