Expected Behaviour:
Web interface (e.g. DNS/DHCP) saves settings when I click "Save".
Environment is:
- Raspberry Pi 3B
- Raspbian 10 (Buster)
Actual Behaviour:
Web interface claims it has saved, but does not show changes when page is refreshed.
Comments:
I thought I would create this as a new thread rather than resurrect dead ones from 2017. If that wasn't appropriate, I apologise and will move my comments to one of those threads instead.
This thread Settings not saved via web interface gave me enough clues to work out what was happening. I successfully identified the issue as lighttpd being unable to execute sudo commands (looked at pihole -d and then more closely at the lighttpd error log).
Whilst the /etc/sudoers.d/pihole
file was present and correct, what was missing was the import directive in /etc/sudoers
. I suspect this occurred because I have had this Pi running for years and gone through two upgrades of the OS with time (and clearly did not replace the sudoers file). Once I added the import directive, everything worked.