HPlogo Using the X Window System > Chapter 8 Using the X Clients

Adding and Deleting Hosts with `xhost'

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Using xhost, you can add or delete a remote host's permission to access the local display server.

NOTE: Hosts entered by xhost have access only until the server recycles. A server recycles when the last client attached to a server goes away. For systems running many clients, this is usually at the end of a session. For systems running a server but no clients, hosts entered by xhost may be removed before you have a chance to use the remote host.

To add hosts permanently, make an entry in the X0.hosts file.

The xhost command is in the form:

   xhost [+-] [name]

where:

+name

Add the remote host named name to the list of computers allowed to connect to the X server.

-name

Remove name from the list of computers allowed to connect to to the X server.

+

Allow access to everyone (access control disabled).

-

Allow access only to computers in the list (access control enabled).

blank

Display current status and list of computers allowed to access the X server.

For example, the following command allows the remote computer hpggggg to access your local display.

   xhost +hpggggg

For more information, refer to the xhost man page.

© 1995 Hewlett-Packard Development Company, L.P.