Can't extract X cookie w/ ssh forwarding

From: Ian Pilcher (pilchman_at_attbi.com)
Date: 05/03/03


Date: Sat, 03 May 2003 21:38:06 GMT

I am writing a script that needs to run an X client as a different user.
I am using 'xauth extract - $DISPLAY' to get the appropriate cookie.

This works fine for local users. When using ssh with X forwarding,
however, it doesn't work. Here is a brief example:

     [pilcher@home pilcher]$ ssh root@localhost
     root@localhost's password:
     Last login: Sat May 3 12:13:45 2003 from home
     [root@home root]# xauth extract - $DISPLAY > /dev/null
     No matches found, authority file "-" not written
     [root@home root]# xauth list
     home/unix:10 MIT-MAGIC-COOKIE-1 cbcfa5cca61304e806df71fd71ac9647
     home/unix:11 MIT-MAGIC-COOKIE-1 10e283e98dfe402cc6fb826b0341e43e
     [root@home root]# echo $DISPLAY
     localhost:11.0

Any ideas? Thanks!

-- 
========================================================================
Ian Pilcher                                           pilchman@attbi.com
========================================================================


Relevant Pages

  • Login Progress Bar
    ... I have been requested to display a login status (Pic ... I am looking to do this in a client side script that is usable by most ... Action without a Plan is a Nightmare ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to detect whether javascript is enabled or not on client machine
    ... >> run my script that includes javascript. ... >Display a message to the client telling them to turn on javascripa (or ...
    (comp.lang.php)
  • Re: Text terminal rendering design
    ... The client is an application with need of a UI that works by ... what symbols it needs to display and the coordinates at which each ... In the case of most text terminals, a symbol is represented by a single ... complex conversion operations to put the symbol into a form that the ...
    (comp.object)
  • Re: Install printers to groups of users or computers by using Group Policy
    ... In the SBS 2003 environment, the client printer is installed by the SBS ... The script do not depend on group policy, ...
    (microsoft.public.windows.server.sbs)
  • Re: Text terminal rendering design
    ... this would only be appropriate for a symbol that was instantiated purely for display compatibility. ... The only way I see is to have some separate notion of symbol identity that the client provides. ... available when each Icon is being constructed. ... What I thought you were representing was the fact that if a conversion is necessary, then there will be two Symbol instances in your UI software and you will provide both handles to the client to map to the relevant Icon. ...
    (comp.object)