Screen in an Xterm -- su & running browser

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 03/26/04


Date: Fri, 26 Mar 2004 08:05:45 GMT


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

(and a variety of other similar messages with different DISPLAY variations
-- with some, Dillo seems
to start, but isn't really, because TOP says nothing about it, but I have
to use ^C to get the prompt back)

The weird thing is that I used to startx from this user account, and copied
the ~/.Xauthority file with the "magic cookie" FROM this user to my account
and it works fine there if I startx from there, which I do now.

$ echo $DISPLAY

from the main user account gives: :0.0

Any clues appreciated. I want to be able to su to that user in Screen and
run the browser there.

While you are reading this, I am reading through the forest of X man pages...

AC



Relevant Pages