[comp.windows.x] X11R4 security/protection problem

gjc@mitech.com (11/12/90)

X11R4 question, what would be causing this:
(When logged in as "root" this works, but when logged in
 as a regular user xinit works but any other commands
 get "can't open display")

Symptom: % xinit &
         % twm &
         "Can't open display"

Is there something that could have gone wrong in the X installation,
some file or device that has the wrong protection? A missing file
of some sort?

-gjc

masa@hpsciz.HP.COM (Masayoshi Habu) (11/14/90)

There are at least two places you might need to set. However both
are also required for X11R3, so if your problem is specific to X11R4,
then those are not the cause.

As you might know, you need to set your DISPLAY environment variable
to your dislay name like "hpsciz:0.0". Also you have to allow your
host with xhost command. Even your client and X server run on the
same host, you need xhost to allow your client to talk to your server.

Masa

meo@rsiatl.UUCP (Miles ONeal) (11/15/90)

masa@hpsciz.HP.COM (Masayoshi Habu) writes:
|As you might know, you need to set your DISPLAY environment variable
|to your dislay name like "hpsciz:0.0". Also you have to allow your
|host with xhost command. Even your client and X server run on the
|same host, you need xhost to allow your client to talk to your server.

Or, set DISPLAY to "unix:0" if by some wierd fate you have problems
with the above...