Fix delete function with sudo and remove export feature

This commit is contained in:
2026-01-01 20:25:08 +11:00
parent 075faa5731
commit 809ce8b6f3
3 changed files with 9 additions and 67 deletions

View File

@@ -502,6 +502,7 @@ ln -sf $LOOT_DIR /var/www/html/loot 2>/dev/null
echo -e "$OKBLUE[*]$RESET Configuring permissions for Web UI... $RESET"
echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/bash /usr/share/sniper/sniper *' > /etc/sudoers.d/www-data-sniper
echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/pkill *' >> /etc/sudoers.d/www-data-sniper
echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/rm *' >> /etc/sudoers.d/www-data-sniper
chmod 440 /etc/sudoers.d/www-data-sniper
# Configure Apache Port 8888