LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   xhost + (https://www.linuxquestions.org/questions/linux-general-1/xhost-694092/)

triley 12-31-2008 12:22 PM

xhost +
 
Using Xwin32 installed on a windows system, I am trying to connect to a remote system running RHEL4, Update 7. When I try to connect I am getting the following error from Xwin32...

/usr/bin/xterm Xt error: Can't open display:

On the target linux system, I logged in remotely as root and ran:

export DISPLAY=:0.0
xhost +

When I run xhost + I get the following error:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"

Any thoughts on why I can't run xhost +

Thanks!

David the H. 12-31-2008 01:10 PM

Well, first, xhost needs to be run as the user actually owning the running x-server. All you're doing is trying to change the root user's x permissions, for a server that doesn't exist.

Second, running xhost+ is very insecure. You're allowing everyone access to the x-server. At the very least limit it to only the hosts and users you actually want to give access to it. Even better is to set up an xauthority "handshake" for the systems involved.

Third, the default configuration for the x-server in many distros is set to ignore tcp requests (it's started with "--nolisten-tcp"). You may need to restart the x-server without it.

Finally, check to see if there isn't some kind of firewall blocking the requests.


All times are GMT -5. The time now is 05:58 PM.