LinuxQuestions.org
Review your favorite Linux distribution.
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 06-28-2006, 02:54 PM   #1
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Rep: Reputation: 16
xhost list file


Ok the main problem: I want to set up xhost such that "xhost +" will not be enabled. I do not want users to be able to just have all hostnames access a system.

The minor problem is that I cannot find where xhost is keeping its list of hostnames that it will allow. The man page said that it would be /etc/X*.hosts but there is no such file that fits into that description. I know it is taking data, because I entered a few hostnames and here is the output that I get:

Code:
[root@cmi321 ~]# xhost
access control enabled, only authorized clients can connect
INET:cmi323.svl.ibm.com
INET:cmi322.svl.ibm.com
Thank you,
Michael
 
Old 06-30-2006, 04:13 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Your problem is basically the inverse of mine, but I think it points to the answer for you. There is a startup option for X '-nolisten <proto>', where proto is one of tcp, udp, others that I can't remember.

-nolisten tcp seems to override any xhost settings I apply. So far, I haven't been able to track down where this setting actually originates (and I'd like to remove it). I'd be grateful if someone can point this out.

I use Scientific Linux, which is basically a RHEL clone.

--- rod.
 
Old 06-30-2006, 04:46 PM   #3
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Original Poster
Rep: Reputation: 16
I can't find the config file (or I assume it is a config file) that you are refering to. Where would I find the X startup options (or where would I edit them)? Sorry I'm slow with this stuff.

-Michael
 
Old 06-30-2006, 04:56 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Good question. As soon as I figure it out, or someone tells me, I'll post it here.

--- rod.
 
Old 06-30-2006, 04:59 PM   #5
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Original Poster
Rep: Reputation: 16
Oh I see. Well I'll go hunting for X startup options. I get the feeling that I wont find anything, but if I do I'll post it here.

Thanks for your help.
 
Old 07-02-2006, 10:37 AM   #6
gloomy
Member
 
Registered: Jan 2006
Location: Finland
Distribution: Mainly Gentoo
Posts: 119

Rep: Reputation: 15
The config file, dependable on your distro, is located in the /bin directory of X.

In my system the file is:

Code:
/usr/X11R6/bin/startx
Hope this helped.
 
Old 07-02-2006, 01:56 PM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
In my RHEL compatible system (Sceintific Linux), I had to edit

/etc/X11/gdm/gdm.conf

I had to un-comment

# DisallowTCP=true

and change it to

DisallowTCP=false

I hope this can help the original poster, paranoid times

Part of the trick for me was that I was trying to get the effect to take place by sending a SIGHUP to the X server. It needed a full restart to make it take effect.

--- rod.
 
  


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
file list mark_alfred Linux - General 3 12-07-2005 08:54 AM
list file name ust Linux - Software 4 12-07-2005 02:58 AM
C++ get file list Wynd Programming 2 06-09-2003 05:33 AM
can not list tar file juno Linux - Software 2 09-23-2002 02:47 AM
can not list tar file juno Linux - General 2 09-22-2002 11:54 PM

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

All times are GMT -5. The time now is 02:20 AM.

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