Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th September 2012, 05:34 PM
cyborg's Avatar
cyborg Offline
Registered User
 
Join Date: Apr 2004
Location: Brackley, England
Age: 22
Posts: 180
linuxfirefox
Adding hosts to the xhosts list permanently

Is there a text file anywhere, where I can add some hosts to so that I don't have to keep doing `xhost +host`? I thought it was meant to be /etc/X0.hosts, but I don't have this file (do I need to create it?).
__________________
[joe@host]
Reply With Quote
  #2  
Old 6th September 2012, 06:46 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: Adding hosts to the xhosts list permanently

Using xhost is a security nightmare - you open your X server to ANY process on the designated host.

This is maintained only by the X server, and is only usable when the TCP socket is enabled. This allows the server to fail secure if the X server is restarted. The problem using a /etc/Xn.hosts file is that EVERY user of the designated display can get unauthorized connections.

Another problem is that the X server doesn't just use "X0.hosts", when user login switching is used, you can get "X[0,1,2,...40] (I've seen 40 on my system), making maintaining the file unreasonable.

Normally, the X server has TCP connections disabled.

Use ssh to tunnel X protocol securely. Easier, and doesn't require any work.
Reply With Quote
Reply

Tags
adding, hosts, list, permanently, xhosts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding libX11 permanently to linker command line, is this possible? aCROX999 Using Fedora 7 15th March 2011 12:59 PM
permanently remove package from update check list goku Using Fedora 2 13th September 2009 07:50 AM
Adding seperate servers as virtual hosts (?) KClaisse Servers & Networking 2 14th November 2007 09:07 PM
Permanently adding static route issue with FC7 sling1947 Servers & Networking 1 23rd June 2007 01:40 AM


Current GMT-time: 17:48 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat