From 91ce949c099362866f98c40f369cc91c1bb3dc98 Mon Sep 17 00:00:00 2001 From: lirzh Date: Thu, 15 Oct 2026 20:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8969e43..969a01a 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,23 @@ su - apt update && apt install curl wget sudo ``` + 安装完后请使用以下命令换源: ```bash su - bash <(curl -s http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/apt-mirror.sh) ``` -#### 3. 安装 Hydro OJ + +#### 3. 为 ptyz 用户增加 sudo 权限 + +```bash +su - +usermod -aG sudo ptyz # 加入 sudoer 组 +echo 'ptyz ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/ptyz && chmod 0440 /etc/sudoers.d/ptyz # 免密 sudo +``` + +#### 4. 安装 Hydro OJ ```bash su -