-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Change FTL database permission to 664 #1162
Conversation
I've been thinking about how to change permissions on already existing databases. My idea would be to move the whole section Lines 172 to 175 in b90ab8b
from Line 211 in b90ab8b
This would set the permissions every time the database in initialized (same for newly created db or existing databases). What do you think? |
Yes, this sounds like a workable solution. There should be no harm involved in (re)setting the permissions once on every FTL start. FTL may not be edit 1 Thinking again about this, we might as well want to do it here: because we never ensure the permissions are right after the file has been created. |
Like that pi-hole/pi-hole#4328? |
Signed-off-by: yubiuser <[email protected]>
Signed-off-by: yubiuser <[email protected]>
Signed-off-by: yubiuser <[email protected]>
Signed-off-by: DL6ER <[email protected]>
Signed commits locally and updated the fork branch as discussed with @yubiuser |
How familiar are you with the codebase?: {replace this text with a number from 1 to 10, with 1 being not familiar, and 10 being very familiar}
1
Sets the file permission of the
pihole-FTL.db
to664
to allow write permission to thepihole
group. This is necessary for pi-hole/web#1886 as it allows the web interface write permission to delete items from themessage
table