1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 13:15:25 +02:00
tldr/pages/linux/xhost.md

29 lines
622 B
Markdown
Raw Normal View History

# xhost
> Manage access control lists for X server connections.
> More information: <https://manned.org/xhost>.
- Display the current access control list:
`xhost`
- Allow a specific host to connect to the X server:
`xhost +{{hostname}}`
- Deny a specific host from connecting to the X server:
`xhost -{{hostname}}`
2025-06-29 11:25:34 +03:00
- Allow all hosts to connect (disable access control - insecure):
`xhost +`
- Deny all hosts except those explicitly allowed (enable access control):
`xhost -`
- Remove a specific user or address using a family prefix (like `inet:hostname` or `si:localuser:username`):
`xhost -{{family:name}}`