> 
> Thanks for all answers. I found where the problem was.
> I did as follows:
>     X :1 &
>    DISPLAY=":1" xhost +B
> This does not keep the authorization for B!
> Doing X :1 &
>    xterm -display :1
> and then typing xhost +B on the xterm works fine.
> 

I can explain that one. Whenever the last client disconnects from the X
server, it automatically resets to it's startup state. In the case
without the xterm, xhost is both the first and last client, so it sets
the permission, but as soon as it exits, the server resets it. By
running the xterm, it acts as the anchor for your session and the
permission setting stays in effect.

-- 
Chris Bare
[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list

Reply via email to