mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-24 00:00:14 +00:00
Add comment about file permissions
Co-authored-by: Dominik <DL6ER@users.noreply.github.com> Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
parent
232d581916
commit
83a38bb71d
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ mkdir -p /var/log/pihole
|
||||||
chown -R pihole:pihole /etc/pihole /var/log/pihole
|
chown -R pihole:pihole /etc/pihole /var/log/pihole
|
||||||
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
|
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)
|
||||||
find /etc/pihole/ /var/log/pihole/ -type d -exec chmod 0755 {} +
|
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 {} +
|
find /etc/pihole/ /var/log/pihole/ -type f ! \( -name '*.pem' -o -name '*.crt' \) -exec chmod 0640 {} +
|
||||||
find /etc/pihole/ /var/log/pihole/ -type f -name '*.pem' -o -name '*.crt' -exec chmod 0600 {} +
|
find /etc/pihole/ /var/log/pihole/ -type f -name '*.pem' -o -name '*.crt' -exec chmod 0600 {} +
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue