mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-28 16:14:07 +02:00
versions file should readable by others (make pihole -v work for non-root users) (#6002)
This commit is contained in:
commit
6c5bc1de39
@ -12,6 +12,10 @@ FTL_PID_FILE="$(getFTLConfigValue files.pid)"
|
|||||||
# Ensure that permissions are set so that pihole-FTL can edit all necessary files
|
# Ensure that permissions are set so that pihole-FTL can edit all necessary files
|
||||||
mkdir -p /var/log/pihole
|
mkdir -p /var/log/pihole
|
||||||
chown -R pihole:pihole /etc/pihole/ /var/log/pihole/
|
chown -R pihole:pihole /etc/pihole/ /var/log/pihole/
|
||||||
|
|
||||||
|
# allow all users read version file (and use pihole -v)
|
||||||
|
chmod 0644 /etc/pihole/versions
|
||||||
|
|
||||||
# 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
|
# Set all files (except TLS-related ones) to u+rw g+r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user