jacklul / pihole-updatelists

Update Pi-hole's lists from remote sources easily
MIT License
1.39k stars 81 forks source link

Root priviliges required #128

Closed Kopernikus1979 closed 1 year ago

Kopernikus1979 commented 1 year ago

Hi,

When I run pihile-updatelists (or /usr/local/sbin/pihole-updatelists) I alaways get the warning I need to run it with root privileges. So "sudo pihile-updatelists", and this works, however will the scheduler work? Before I could run "pihile-updatelists" without sudo, I don't now what's changed?

jacklul commented 1 year ago

Hi,

When I run pihile-updatelists (or /usr/local/sbin/pihole-updatelists) I alaways get the warning I need to run it with root privileges. So "sudo pihile-updatelists", and this works, however will the scheduler work? Before I could run "pihile-updatelists" without sudo, I don't now what's changed?

Scheduled task will always run as root unless specified otherwise. Previously when executing pihole-updatelists without sudo it silently re-launched itself with sudo pihole-updatelists, because this is a bad practice this behavior was removed.