Add system/debuglog.sh to sudoers

This commit is contained in:
billz 2023-11-01 07:46:36 +00:00
parent 9663832f0d
commit 22cd0ae017
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ if (isset($_POST['csrf_token'])) {
handleInvalidCSRFToken();
}
$root = getenv("DOCUMENT_ROOT");
exec( RASPI_CONFIG.'/system/debuglog.sh -i '.$root, $return);
exec('sudo '.RASPI_CONFIG.'/system/debuglog.sh -i '.$root, $return);
$logOutput = implode(PHP_EOL, $return);
$tempDir = sys_get_temp_dir();

View file

@ -41,6 +41,7 @@ www-data ALL=(ALL) NOPASSWD:/etc/raspap/hostapd/servicestart.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/lighttpd/configport.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/openvpn/configauth.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/openvpn/openvpnlog.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/system/debuglog.sh
www-data ALL=(ALL) NOPASSWD:/bin/chmod o+r /tmp/hostapd.log
www-data ALL=(ALL) NOPASSWD:/bin/chmod o+r /var/log/dnsmasq.log
www-data ALL=(ALL) NOPASSWD:/bin/chmod o+r /tmp/wireguard.log