From 2e2ae39d087163aa5a22e3eacbb0a357e68b1bdd Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 25 Mar 2026 14:32:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20root-setup=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20sudo=20=E5=85=8D=E5=AF=86=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E4=BA=A4=E7=94=B1=20dcli=20=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root-setup.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/root-setup.sh b/root-setup.sh index 37a4c09..2ef7767 100755 --- a/root-setup.sh +++ b/root-setup.sh @@ -25,10 +25,6 @@ else passwd "$USERNAME" fi -echo "==> 配置 wheel 组免密 sudo..." -echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel -chmod 440 /etc/sudoers.d/wheel - echo "==> 配置 WSL 默认用户..." cat > /etc/wsl.conf << EOF [user]