xhost
The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server.

xhost [OPTIONS]
[+]name
-name
+
-
nothing
[+]name, The given name is added to the list allowed to connect to the X server.
-name, The given name is removed from the list allowed to connect to the X server.
+, Access is granted to everyone.
-, Access is restricted to those on the list.
nothing, If no command line arguments are given, a message indicating whether or not access control is currently enabled is printed, followed by the list of those allowed to connect.