-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Root-owned files in pihole/etc/pihole #1783
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
Comments
Please post your compose file, specially the volumes you used. |
The logrotate has been included in the container also in v5 (and maybe even before). We actually reduced the amount of files owned by someone else than Only the
Lines 14 to 15 in 78aee9e
|
I'm just referring to the "What's Changed" for 2025.02.0: It appears that is when the root-owned logrotate file started to be injected into the directory. I noticed that file was owned by root first, but I've subsequently run into other files/dirs owned by root as well. Currently, the full list is:
I had no root-owned files in these dirs before updating from 2024.07.0. I am passing the following in the environment section in my compose file (though I see they're already the default):
My volumes are mapped to local dirs so I can back them up, like this:
|
A couple days ago, the other root-owned files (besides logrotate) switched back to being owned by the user. But then today one of them switched back to being root-owned (etc/pihole/gravity_old.db). I accept that logrotate is root owned, but what could be causing the other files to be switching owners periodically? |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
My backup jobs have been failing since I pulled the most recent version of the container. It seems to be due to the presence of root-owned files in pihole directories that I have mapped to local directories. I don't run my backup jobs as root, so the job fails when attempting to read files that are only readable by root.
The reason I bring this up is because pihole is currently the only container of the tens of containers I am running where this is an issue. I'm guessing it has to do with the recent addition of logrotate to the container, and I'm not sure of an easy workaround. For now, I'm excluding certain pihole files from my backup job, but would prefer to be able to backup the entire config directory as I do with my other containers.
Any workarounds or changes to the container to improve this situation would be greatly appreciated.
The text was updated successfully, but these errors were encountered: