Xvfb and X authorization

From: Matt Price (matt.price_at_utoronto.ca)
Date: 11/16/04

  • Next message: K-sPecial: "Re: lilo and mbr"
    Date: Tue, 16 Nov 2004 14:42:56 -0500
    To: debian users <debian-user@lists.debian.org>
    
    

    hi,

    I have a script that opens Openoffice in an X session managed by
    Xvfb. I initiate the X session with:

    Xvfb :86 -screen scrn 800x600x32 &

    This used to work fine. But sometime in the recent past, presumably
    since an unobserved update or something, I get this error when trying
    to connect

    $ DISPLAY=:86 xterm &
    [1] 18603
    Xlib: connection to ":86.0" refused by server
    Xlib: No protocol specified

    xterm Xt error: Can't open display: :86
    [1]+ Exit 1 DISPLAY=:86 xterm -sl 1000

    Xvfb itself generates this error:
    AUDIT: Tue Nov 16 14:37:43 2004: 18483 Xvfb: client 1 rejected from
    local host

    I can workaround this by invoking Xvfb with the -ac switch:
    Xvfb :86 -ac -screen scrn 800x600x32 &

    but obviously this is terrible security practice, so I can't use it
    normally.

    I've flipped through the Xserver and Xsecurity man pages but I'm still
    at a bit of a loss as to how to get Xvfb to read the authorization
    file, or maybe I'm using the wrong one. I tried this:

    Xvfb :86 -auth /home/matt/.Xauthority -screen scrn 800x600x32 &

    with no luck.

    anyone have any suggestions?

    thx,

    matt

    --------------------------
     .''`. Matt Price
    : :' : Debian User
    `. `'` & hemi-geek
      `-
    --------------------------
    if you're an evil spambot, these addresses are for you: aardvark@derailleur.org, zeus@derailleur.org

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: K-sPecial: "Re: lilo and mbr"