Controls who accesses Enhanced X-Windows on the current host machine.
The xhost command adds or deletes host names on the list of machines from which the X Server accepts connections.
This command must be run from the machine with the display connection. You can remove a name from the access list by using the -Host parameter. Do not remove the current name from the access list. If you do, log off the system before making any corrections.
Entering the xhost command with no variables shows the current host names with access your X Server and a message indicating whether or not access is enabled.
For security, options that affect access control may only be run from the controlling host. For workstations, this is the same machine as the server. For X terminals, it is the login host.
To enable a remote name by default, the name can be defined in the /etc/X?.hosts file, where ? is the display number to which you enable access.
For example, the display jeanne:0 can be accessed by systems defined in the /etc/X0.hosts file on a system that uses the default host name of jeanne. In both the display name and the file name, 0 indicates the display number that the defined remote systems are allowed to access through Enhanced X-Windows.