summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xroot_scripts/sudo_install_config.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/root_scripts/sudo_install_config.sh b/root_scripts/sudo_install_config.sh
index 2f1ec3c..c4b7730 100755
--- a/root_scripts/sudo_install_config.sh
+++ b/root_scripts/sudo_install_config.sh
@@ -14,6 +14,7 @@ pkg install -y sudo
# backup original file
cp /usr/local/etc/sudoers /usr/local/etc/sudoers.orig
-set 's
-
+sed 's/^# *%wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/' \
+/usr/local/etc/sudoers > /usr/local/etc/sudoers.tmp
+visudo -c -f /usr/local/etc/sudoers.tmp && mv /usr/local/etc/sudoers.tmp /usr/local/etc/sudoers