From 8926753e376078cfcb7f9b7a98e36b1eea8010bf Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 7 May 2025 21:40:24 -0500 Subject: Fixing sed statement in sudo script --- root_scripts/sudo_install_config.sh | 5 +++-- 1 file 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 -- cgit v1.2.3