Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pi-hole permissions #2

Open
vanton1 opened this issue Oct 22, 2022 · 0 comments
Open

Pi-hole permissions #2

vanton1 opened this issue Oct 22, 2022 · 0 comments

Comments

@vanton1
Copy link
Contributor

vanton1 commented Oct 22, 2022

When I install pi-hole with make pihole everything goes as planned but when I log in at pihole's web interface I get an error message. It cannot read /etc/pihole/setupVars.conf. I thought it was the web server that didn't have the right permissions to access the file. In fact the problem is that the directory as well the file have different owner than the user runs the web server (www-data). If I change both to have www-data as owner everything works fine except that another error message appears concerning another conf file in the same folder.
I've tried many different things but I haven't yet come up with an out-of-the-box solution. I changed PIHOLE_UID to 33 in the extraEnvVars section in the pihole.values.yml so the directory is created with www-data as the owner.
Note that www-data uid is 33.

But then I have to change the ownership to setupVars.conf, pihole-FTL.conf, dns-servers.conf and versions manually. I would like to avoid this manual step. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant