From eba33caf1e7c425d37cb59ac6447281faa0cb6e6 Mon Sep 17 00:00:00 2001 From: Umair Khurshid <87898890+Umair-khurshid@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:51:06 +0500 Subject: [PATCH] xhost: add page (#16283) Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/xhost.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/xhost.md diff --git a/pages/linux/xhost.md b/pages/linux/xhost.md new file mode 100644 index 0000000000..c19450dde0 --- /dev/null +++ b/pages/linux/xhost.md @@ -0,0 +1,28 @@ +# xhost + +> Manage access control lists for X server connections. +> More information: . + +- 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}}`