LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2003, 04:40 AM   #1
astrobase
LQ Newbie
 
Registered: Oct 2003
Distribution: red-hat; slackware
Posts: 5

Rep: Reputation: 0
Xwindows


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 ?

thx

Ben
 
Old 11-06-2003, 06:07 AM   #2
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
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?
 
Old 11-06-2003, 06:17 AM   #3
astrobase
LQ Newbie
 
Registered: Oct 2003
Distribution: red-hat; slackware
Posts: 5

Original Poster
Rep: Reputation: 0
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.

thx

Last edited by astrobase; 11-06-2003 at 06:40 AM.
 
Old 11-07-2003, 04:42 AM   #4
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
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

Last edited by yapp; 11-07-2003 at 04:44 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xwindows Ammad Programming 1 02-24-2005 03:23 PM
XWindows cleekjc Linux - Newbie 1 07-26-2003 12:09 AM
Xwindows yoddy Linux - Newbie 4 07-21-2003 05:58 PM
xwindows evian Linux - Newbie 4 03-13-2003 05:21 AM
XWindows? Daniel Linux - Newbie 28 07-04-2001 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration