mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-07 19:55:09 +02:00
Add comment about TLS-related file permissions
Co-authored-by: Dominik <DL6ER@users.noreply.github.com> Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
parent
83a38bb71d
commit
ad6a48b219
@ -16,6 +16,7 @@ chown -R pihole:pihole /etc/pihole /var/log/pihole
|
||||
find /etc/pihole/ /var/log/pihole/ -type d -exec chmod 0755 {} +
|
||||
# Set all files (except TLS-related ones) to u+rw g+r
|
||||
find /etc/pihole/ /var/log/pihole/ -type f ! \( -name '*.pem' -o -name '*.crt' \) -exec chmod 0640 {} +
|
||||
# Set TLS-related files to a more restrictive u+rw *only* (they may contain private keys)
|
||||
find /etc/pihole/ /var/log/pihole/ -type f -name '*.pem' -o -name '*.crt' -exec chmod 0600 {} +
|
||||
|
||||
# Logrotate config file need to be owned by root
|
||||
|
Loading…
x
Reference in New Issue
Block a user