View Single Post
  #4  
Old July 11th, 2006
FASherman's Avatar
FASherman Offline
IBM pSeries and Storage Architect
 
Join Date: May 2006
Posts: 240
Send a message via Yahoo to FASherman
Re: Configure xhost files?

No, I think you misunderstood. To restrict X access to selected hosts follow these three steps:
  1. Create or edit the file "/etc/Xn.hosts" where 'n' is the display number of the server on the local host, normally 0, as in "/etc/X0.hosts".

    To deny all X access to your system, the file /etc/X0.hosts will contain a single character, "-".

    To grant access to hosts "host1.com" and "host2.com" and no other hosts the file /etc/X0.hosts will consist of:

    -
    +host1.com
    +host2.com
  2. Search through all files in the directory /usr/lib/X11/xdm for occurances of the command "xhost +" or "/usr/bin/X11/xhost +". Remove or comment out all such lines.
  3. Inform users that any xhost commands should be removed or commented out of user startup scripts, such as .cshrc, .login, .profile, etc.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Fred Sherman
IBM pSeries and Storage Architect
Reply With Quote