ListCache permissions inconsistent

Please follow the below template, it will help us to help you!

Expected Behaviour:

  • Operating System (Family and Version): Raspian Lite
  • Hardware: Rasperry Pi 4

Pihole should set the permissions to the .etag file to pihole:pihole.

Actual Behaviour:

If you add a new list via web in pihole and update it using gravity update on console, the rights for the .etag file under /etc/pihole/listsCache/ are set to root (executing user).
If you update the list for the first time via the web, then everything is set correctly as pihole:pihole.
It still works like a charm, but it looks inconsistent.

pi@pihole:~ $ ls -la /etc/pihole/listsCache/
total 161004
drwxrwxr-x 2 pihole pihole     4096 Jul  1 19:00 .
drwxrwxr-x 8 pihole pihole     4096 Jul  1 19:01 ..
-rw-rw-r-- 1 pihole pihole  4349265 Jul  1 19:00 list.2.big.oisd.nl.domains
-rw-r----- 1 pihole pihole       11 Jul  1 19:00 list.2.big.oisd.nl.domains.etag
-rw-rw-r-- 1 pihole pihole       92 Jul  1 19:00 list.2.big.oisd.nl.domains.sha1
-rw-rw-r-- 1 pihole pihole  3934630 Jul  1 19:00 list.3.raw.githubusercontent.com.domains
-rw-r----- 1 pihole pihole       69 Jul  1 19:00 list.3.raw.githubusercontent.com.domains.etag
-rw-rw-r-- 1 pihole pihole      106 Jul  1 19:00 list.3.raw.githubusercontent.com.domains.sha1
-rw-rw-r-- 1 pihole pihole  9217417 Jul  1 19:00 list.4.raw.githubusercontent.com.domains
-rw-r----- 1 pihole pihole       69 Jul  1 19:00 list.4.raw.githubusercontent.com.domains.etag
-rw-rw-r-- 1 pihole pihole      106 Jul  1 19:00 list.4.raw.githubusercontent.com.domains.sha1
-rw-rw-r-- 1 pihole pihole 72828665 Jul  1 19:00 list.5.raw.githubusercontent.com.domains
-rw-r--r-- 1 root   root         69 Jul  1 19:00 list.5.raw.githubusercontent.com.domains.etag
-rw-rw-r-- 1 pihole pihole      106 Jul  1 19:00 list.5.raw.githubusercontent.com.domains.sha1
-rw-rw-r-- 1 pihole pihole 74481339 Jul  1 19:00 list.6.raw.githubusercontent.com.domains
-rw-r--r-- 1 root   root         69 Jul  1 19:00 list.6.raw.githubusercontent.com.domains.etag
-rw-rw-r-- 1 pihole pihole      106 Jul  1 19:00 list.6.raw.githubusercontent.com.domains.sha1

Debug Token:

https://tricorder.pi-hole.net/ApyIXMKh/

How are you adding the lists via console? Can you include the full steps you are using?

I have added them via web. And run gravity update from console for the first Download.
This only happens with new lists, not updated lists.

You should be able to delete the files and update with console. It should result in the same.

1 Like

Yep, I'm seeing the same.

It looks like the permissions are being fixed for the .domains file and the .sha1 sum file but the .etag isn't being accounted for.

Are you able to open an issue on GitHub - pi-hole/pi-hole: A black hole for Internet advertisements and reference this topic's URL?

1 Like

I have opened ListCache permissions inconsistent · Issue #6322 · pi-hole/pi-hole · GitHub

1 Like