From 5ca9465e8378b8060d417ca8c2fb98112c7628f1 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 4 Dec 2023 09:00:02 +0000 Subject: [PATCH] Update sudoers interface patterns --- installers/raspap.sudoers | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/installers/raspap.sudoers b/installers/raspap.sudoers index d69bba44..99de3b1d 100644 --- a/installers/raspap.sudoers +++ b/installers/raspap.sudoers @@ -1,21 +1,21 @@ www-data ALL=(ALL) NOPASSWD:/sbin/ifdown www-data ALL=(ALL) NOPASSWD:/sbin/ifup www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf -www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wpa_supplicant/wpa_supplicant-wl*.conf +www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wpa_supplicant/wpa_supplicant-[a-zA-Z0-9]*.conf www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant.conf www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant-wl*.conf -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_supplicant -B -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf -iwl* -www-data ALL=(ALL) NOPASSWD:/bin/rm /var/run/wpa_supplicant/wl* -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* scan_results -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* scan -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* reconfigure -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* add_network -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* list_networks +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_supplicant -B -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf -i[a-zA-Z0-9]* +www-data ALL=(ALL) NOPASSWD:/bin/rm /var/run/wpa_supplicant/[a-zA-Z0-9]* +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* scan_results +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* scan +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* reconfigure +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* add_network +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* list_networks www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i enable_network [0-9] www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i disconnect [0-9] -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* select_network [0-9] -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* set_network [0-9] * -www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* remove_network [0-9] +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* select_network [0-9] +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* set_network [0-9] * +www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i [a-zA-Z0-9]* remove_network [0-9] www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf www-data ALL=(ALL) NOPASSWD:/bin/systemctl start hostapd.service www-data ALL=(ALL) NOPASSWD:/bin/systemctl stop hostapd.service