sudo is needed for the sudoers file to work, which is how the Web interface executes the pihole commands.