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

/etc/pihole/adlists.list permission problem #2413

Closed
3 tasks done
DrGeoff opened this issue Sep 15, 2018 · 3 comments
Closed
3 tasks done

/etc/pihole/adlists.list permission problem #2413

DrGeoff opened this issue Sep 15, 2018 · 3 comments
Labels
Investigating Open issue or bug, under investigation triage: Issue User Filled out Issue Template

Comments

@DrGeoff
Copy link

DrGeoff commented Sep 15, 2018

In raising this issue, I confirm the following:

How familiar are you with the the source code relevant to this issue?:
1


Expected behaviour:
The Pi-hole admin page should work

Actual behaviour:
[ERROR]: There are no adlist URL's found within /etc/pihole/adlists.list

Steps to reproduce:
Fresh install on Raspberry Pi with all the latest updates. Point a webbrowser at http:///admin/

Debug token provided by uploading pihole -d log:
Not provided

Troubleshooting undertaken, and/or other relevant information:
Looking in /var/log/lighttpd/error.log shows
(mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(/etc/pihole/adlists.list): failed to open stream: Permission denied in /var/www/html/pihole/index.php on line 120

The permissions on /etc/pihole/adlists.list are
$ sudo ls -al /etc/pihole/adlists.list
-rw------- 1 root root 381 Sep 15 17:42 /etc/pihole/adlists.list

@AzureMarker
Copy link
Contributor

Have you changed the default permissions for new files? On a new install, I see this:

-rw-r--r--. 1 root   root         381 Sep 15 21:05 adlists.list

@AzureMarker AzureMarker added triage: Issue User Filled out Issue Template Investigating Open issue or bug, under investigation labels Sep 15, 2018
@DrGeoff
Copy link
Author

DrGeoff commented Sep 16, 2018

After much searching (including a complete system reinstall) I finally remembered to check my bashrc. And yes, there is a umask setting.

umask 0077

So the pi-hole install script is relying on a different umask? I see that the default umask is normally 0022. I'll manually set that and do the pi-hole install now.

@DrGeoff
Copy link
Author

DrGeoff commented Sep 16, 2018

The following provided a successful install

$ sudo -s
# umask 0022
# curl -sSL https://install.pi-hole.net | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigating Open issue or bug, under investigation triage: Issue User Filled out Issue Template
Projects
None yet
Development

No branches or pull requests

2 participants