mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
xhost: add page
This commit is contained in:
parent
bd97f91c08
commit
cae30db732
1 changed files with 29 additions and 0 deletions
29
pages/linux/xhost.md
Normal file
29
pages/linux/xhost.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# xhost
|
||||
|
||||
> Manage access control lists for X server connections.
|
||||
> Adds or removes hosts and users allowed to connect to the X server.
|
||||
> 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}}`
|
Loading…
Add table
Reference in a new issue