通过 dcli 管理 sudoers 配置,wheel 组免密 sudo

This commit is contained in:
2026-03-25 14:46:32 +08:00
parent 6641a75fc9
commit 9e9257ae66
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
%wheel ALL=(ALL) NOPASSWD: ALL
+1 -1
View File
@@ -23,7 +23,7 @@ pacman -S --needed --noconfirm sudo
echo "==> 配置 sudo 权限..." echo "==> 配置 sudo 权限..."
cat > /etc/sudoers.d/10-wheel << 'EOF' cat > /etc/sudoers.d/10-wheel << 'EOF'
%wheel ALL=(ALL:ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL
EOF EOF
chmod 440 /etc/sudoers.d/10-wheel chmod 440 /etc/sudoers.d/10-wheel