Skip to content
\n

And the default file permissions:

\n
root@pihole-xxxxxxxxxx-xxxxx:/# ls -lahF /etc/pihole/\ntotal 91M\ndrwxrwxr-x 3 pihole pihole 4.0K Sep 30 05:50 ./\ndrwxr-xr-x 1 root   root   4.0K Sep 30 05:46 ../\n[...]\n-rw-rw-r-- 1 pihole pihole  67M Sep 30 05:47 gravity.db\n[...]
\n

Hope this helps!

\n

Note: The config file also recommends to read http://wiki.debian.org/SecuringNFS, so that's a good next step. :-)

\n

PS: Thanks to @i5Js, your research helped a lot to pinpoint the exact problem!

\n

Thanks to @brnl for this, as discussed here: #39 (comment)

","upvoteCount":1,"url":"https://GitHub.com/MoJo2600/pihole-kubernetes/discussions/130#discussioncomment-318030"}}}

Fix: Imposible to add more domains to whitelist or blocklist when using NFS #130

Answered by MoJo2600
MoJo2600 asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed!

The problem is in the NFS server configuration!

TL;DR:

Remove --manage-gids from the RPCMOUNTDOPTS in the file /etc/default/nfs-kernel-server on the NFS server and restart the nfs-kernel-server service.

Research

So I found out that if user www-data had pihole as the primary group, I was able to write the gravity.db. As soon as I made www-data primary again and pihole the secondary group again, the permission was denied. However, if I did the same on the NFS server (by adding group 999 as a secondary group to user www-data), all was fine!

So now I knew it had to do something with the NFS communication. After some DuckDuckGo-ing I found this quote:
NFS permission problem with seconda…

Replies: 1 comment

Comment options

MoJo2600
Jan 28, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by MoJo2600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant