From d16292a9865dbc1f2ae719a9c33a285005f9d2e9 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Sun, 10 May 2026 15:57:09 +0800 Subject: [PATCH] Correction regarding Docker permissions --- docs/document/install.md | 8 ++++---- docs/en/document/install.md | 2 +- docs/ru/document/install.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/document/install.md b/docs/document/install.md index 15f926ca..cdf40e80 100644 --- a/docs/document/install.md +++ b/docs/document/install.md @@ -74,8 +74,8 @@ Xray 提供两种验证方式: - [ghcr.io/xtls/xray-core](https://ghcr.io/xtls/xray-core)(**官方**)
无 root 权限、无 shell 环境、支持更多的架构。由官方库编译并构建支持追溯。牺牲了便利性来追求更极端的安全性 ::: details 文件结构 - - `/usr/local/bin/xray`:Xray 主程序(拥有者是 root:root、文件权限 755) - - `/usr/local/etc/xray/`:配置文件目录(挂载点)(拥有者是 root:root、目录权限 755、文件权限 644) + - `/usr/local/bin/xray`:Xray 主程序(拥有者是 `root:root`、文件权限 `755`) + - `/usr/local/etc/xray/`:配置文件目录(挂载点)(拥有者是 `root:root`、目录权限 `755`、文件权限 `644`) - 00_log.json - 01_api.json - 02_dns.json @@ -89,10 +89,10 @@ Xray 提供两种验证方式: - 10_observatory.json - 11_geodata.json - 99_version.json - - `/usr/local/share/xray/`:资源文件目录,存放了 Loyalsoldier 版本地理位置数据文件(权限同上) + - `/usr/local/share/xray/`:资源文件目录,存放了 Loyalsoldier 版本地理位置数据文件(拥有者是 `65532:65532`、目录权限 `755`、文件权限 `644`) - geoip.dat - geosite.dat - - `/var/log/xray/`:日志文件目录(挂载点)(目录拥有者是 root:root、权限 755;文件拥有者是 65532:65532、权限 600) + - `/var/log/xray/`:日志文件目录(挂载点)(目录拥有者是 `root:root`、权限 `755`;文件拥有者是 `65532:65532`、权限 `600`) - access.log - error.log diff --git a/docs/en/document/install.md b/docs/en/document/install.md index bcf726a4..39d08c36 100644 --- a/docs/en/document/install.md +++ b/docs/en/document/install.md @@ -88,7 +88,7 @@ Two different styles of Docker images are currently provided: - 10_observatory.json - 11_geodata.json - 99_version.json - - `/usr/local/share/xray/`: Resource file directory containing Loyalsoldier geolocation data files (same permissions as above) + - `/usr/local/share/xray/`: Resource file directory containing Loyalsoldier geolocation data files (owner: `65532:65532`, directory permissions: `755`, file permissions: `644`) - geoip.dat - geosite.dat - `/var/log/xray/`: Log file directory (mount point) (directory owner: `root:root`, permissions: `755`; file owner: `65532:65532`, permissions: `600`) diff --git a/docs/ru/document/install.md b/docs/ru/document/install.md index 03b172f5..60426699 100644 --- a/docs/ru/document/install.md +++ b/docs/ru/document/install.md @@ -88,7 +88,7 @@ Xray предоставляет два способа проверки: - 10_observatory.json - 11_geodata.json - 99_version.json - - `/usr/local/share/xray/`: каталог файлов ресурсов с геоданными Loyalsoldier (те же права, что и выше) + - `/usr/local/share/xray/`: каталог файлов ресурсов с геоданными Loyalsoldier (владелец: `65532:65532`, права на каталог: `755`, права на файлы: `644`) - geoip.dat - geosite.dat - `/var/log/xray/`: каталог логов (точка монтирования) (владелец каталога: `root:root`, права: `755`; владелец файлов: `65532:65532`, права: `600`)