From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6317bd73ff9b3728 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-23 08:45:46 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!monnier From: monnier@di.epfl.ch (Stefan Monnier) Newsgroups: comp.unix.osf.osf1 Subject: Re: How to use xauth. Date: 23 Jun 1994 15:35:25 GMT Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <2uca3t$nj1@info.epfl.ch> References: <2ua2cq$kel@newpisgah.keene.edu> NNTP-Posting-Host: didec4.epfl.ch In article <2ua2cq$kel@newpisgah.keene.edu>, R. David Murray 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