通过 dcli 管理 sudoers 配置,wheel 组免密 sudo
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
%wheel ALL=(ALL) NOPASSWD: ALL
|
||||||
+1
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user