-   Linux - Software (
-   -   Xwindows (

astrobase 11-06-2003 04:40 AM

Hi all ;
question is simple :
i know about xhost + to allow any host to connect to the x server.
what if i want that option to be anbled at boot time without needing me to login to type it manually ?



yapp 11-06-2003 06:07 AM

I wouldn't suggest anything like that...

if you allow everyone to access your X server at port 6000, people could start an so-called X-Client (a program that connects to X) at every machine, display popups at your screen, and monitor keystrokes from everywhere... etc...

...and what kind of problem are you trying to solve with this xhost thing? :confused:

astrobase 11-06-2003 06:17 AM

hello and thanks for the reply.
Well in fact i want to give selective access to certain hosts... xhost + was just an example.

The fact is , it seems that when you login as root type xhost +name
it disappear when you logout.
What i want is to make the change permanent.


yapp 11-07-2003 04:42 AM

perhaps you want to add the command line to your login scripts :)

but there is one thing I'm wondering about: what is your actual goal? I have a feeling there are other ways to accomplish it too.

first thing, there isn't a real reason to login as root in a GUI like X11; it exposes your entire machine.

ssh has a nice way to forward X11 programs to your local display; start ssh with "ssh -X ...", and you can type the name of the program. ssh changes the $DISPLAY variable. X11 client programs (like mozilla for example), simply connect to the display defined in the $DISPLAY variable. ...and whether that is your local display, another X11 server, or your ssh-tunnel connection doesn't matter.

short story: if you use "ssh -X", and start an program, it's window will appear at your screen! you don't have to open any ports, xhost settings, or what so ever; and ssh provices an encrypted connection too :)

All times are GMT -5. The time now is 01:50 AM.