mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 08:50:36 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/linux/xhost
Normal file
33
tldr/linux/xhost
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user