Re: image dump of hidden X session

From: Andrew Taylor (ataylor_at_its.to)
Date: 08/11/03


Date: Mon, 11 Aug 2003 20:55:35 GMT

mase wrote:

> How I can dump the hidden display of another X session in the same
> machine?

If the X servers are started by different user accounts, make sure you
have an xauth cookie for display :1 or else you won't be able to access it.

First extract it from the "display :1" user: xauth nextract cookiefile :1
Then merge it into the "display :0" users cookies: xauth nmerge cookiefile

If the X display is controlled by a display manager such as gdm or xdm,
you'll have to specify the authorization cookie file when it is
extracted: xauth -f /var/gdm/:1.Xauth nextract cookiefile :1
(xdm stores its cookies in /usr/X11R6/lib/X11/xdm/ instead of /var/gdm/)

-- 
Andrew


Relevant Pages

  • Re: xhost +localhost
    ... > No, in fact, xhost needs the DISPLAY variable already set so that it ... > knows which display to try and connect to to change access control. ... allows anyone to access the X server through unix domain sockets. ... > the cookie is then sends it to the X server to authenticate itself. ...
    (freebsd-questions)
  • Re: x11 forwarding after becoming another user on SecureCRT
    ... (Type `echo $DISPLAY' to see what the DISPLAY ... command to read and write cookies in the cookie file. ... You can tell xauth which file to use ...
    (comp.os.linux.security)
  • Re: Get login name from server
    ... Do like Yahoo and the others you mention, ... enters when loggin in, in a cookie, you can then read it from there ... when you want to display it on a page. ... >My site is hosted on a Unix server, ...
    (microsoft.public.frontpage.programming)
  • Re: why cant I view this website?
    ... >> This winsock repair fixed all my IE web page display trouble. ... > the site's server) uses server-side scripting or programs to generate ... > order and use of the fields within their cookie and you have an old cookie ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: image dump of hidden X session
    ... If the X servers are started by different user accounts, ... have an xauth cookie for display:1 or else you won't be able to access it. ...
    (comp.os.linux.development.system)