From: monnier@di.epfl.ch (Stefan Monnier)
Subject: Re: How to use xauth.
Date: 23 Jun 1994 15:35:25 GMT [thread overview]
Message-ID: <2uca3t$nj1@info.epfl.ch> (raw)
In-Reply-To: 2ua2cq$kel@newpisgah.keene.edu
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
prev parent reply other threads:[~1994-06-23 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-22 19:11 How to use xauth R. David Murray
1994-06-23 15:35 ` Stefan Monnier [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox