XHOST(1)

NAME
xhost - X window system access control program

SYNOPSIS
xhost [+-]host ...

DESCRIPTION
Xhost is used to add and delete hosts to the list of machines X will accept connections from. This is an elementary form of privacy control, since otherwise X would be willing to create windows for anyone on the internet. It is only sufficient for a workstation (single user) environment, though it does limit the worst abuses.

If you want to set up hosts that you always trust, you can specify them in your login file, or you can specify the hosts in the file /etc/X*.hosts, where * is the number of the display on the machine.

Specifying a host name (with an optional leading plus sign) adds that host to the list; use a leading minus sign to delete a host.

DECnet nodes should be specified as names with trailing ``::''.

This program can only be executed on the machine the display is connected to.

It is possible to remove the current host from the access list. Be warned that you can't undo this without logging out.

Xhost with no arguments will print the current hosts allowed to access your display.

FILES
/etc/X*.hosts

SEE ALSO
X(8C), xterm(1)

ENVIRONMENT
DISPLAY    -    To find out which X you are using.

AUTHOR
Copyright 1985 by Massachusetts Institute of Technology.
See X(1) for a complete copyright notice.
Bob Scheifler, MIT Laboratory for Computer Science, Jim Gettys, MIT Project Athena (DEC).