Remove read permission for others on senible log files

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-06-19 23:09:05 +02:00
parent b20aa865b9
commit 954a0c2a14
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1394,7 +1394,7 @@ curl_to_tricorder() {
upload_to_tricorder() {
local username="pihole"
# Set the permissions and owner
chmod 644 ${PIHOLE_DEBUG_LOG}
chmod 640 ${PIHOLE_DEBUG_LOG}
chown "$USER":"${username}" ${PIHOLE_DEBUG_LOG}
# Let the user know debugging is complete with something strikingly visual