Re: Screen in an Xterm -- su & running browser
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 03/26/04
- Previous message: Alan Connor: "Re: Screen in an Xterm -- su & running browser"
- In reply to: Chris F.A. Johnson: "Re: Screen in an Xterm -- su & running browser"
- Next in thread: Alan Connor: "Re: Screen in an Xterm -- su & running browser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 11:15:37 GMT
On 26 Mar 2004 09:03:07 GMT, Chris F.A. Johnson <c.fa.johnson@rogers.com> wrote:
>
>
> On Fri, 26 Mar 2004 at 08:05 GMT, Alan Connor wrote:
>>
>> I run my box (Linux/Debian) from Screen running in an x-terminal-emulator called "aterm".
>> The 'xterm' opens in a window created by a light window manager, flwm.
>>
>> When I login, startx runs calling aterm with Screen running in it.
>>
>> No problem using my graphical browser Dillo when I am running as myself, no matter which pty
>> I am in at the moment: Dillo opens in a seperate window.
>>
>> But if I create a new pty and su - another_user, Dillo will not run.
>>
>> $ export DISPLAY=:0.0
>> $ dillo index.html
>> Xlib: connection to ":0.0" refused by server
>> Xlib: Invalid MIT-MAGIC-COOKIE-1 key
>>
>> Gtk-WARNING **: cannot open display: :0.0
>
>
> xhost localhost
Thanks Chris. I've been reading the man (7) Xsecurity page, and if the cookie bit
hadn't worked was thinking that would be the one to experiment with.
In fact, I did, briefly, and it rejected the username.....Didn't think to try "localhost".
I suspect that the use of the ~/.Xauthority with Magic Cookie with startx may block the use
of xhost, that I would have to remove that file and then reboot the Xserver and put something
like exec xhost + in that ~/.bashrc.
AC
- Previous message: Alan Connor: "Re: Screen in an Xterm -- su & running browser"
- In reply to: Chris F.A. Johnson: "Re: Screen in an Xterm -- su & running browser"
- Next in thread: Alan Connor: "Re: Screen in an Xterm -- su & running browser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]