Enabling and disabling access control

The X server permits remote hosts to use the xhost + command to connect to your system.

Ensure that you specify a host name with the xhost + command, because it disables access control for the X server. This permits you to grant access to specific hosts, which eases monitoring for potential attacks to the X server. To grant access to a specific host, run the xhost command as follows:
# xhost + hostname

If you do not specify a host name, access will be granted to all hosts.