commands.sh

xhost

linux

Manage access control lists for X server connections.

More info →

Examples (6)

Display the current access control list

Allow a specific host to connect to the X server

xhost +hostname

Deny a specific host from connecting to the X server

xhost -hostname

Allow all hosts to connect (disable access control - insecure)

Deny all hosts except those explicitly allowed (enable access control)

Remove a specific user or address using a family prefix (like `inet:hostname` or `si:localuser:username`)

xhost -family:name
made by @shridhargupta | data from tldr-pages