Skip to content

Commit

Permalink
fix permissions for config files in a container (#4454)
Browse files Browse the repository at this point in the history
* fix permissions for config files in a container

* flip user and group
  • Loading branch information
paulfantom authored and ktsaou committed Oct 22, 2018
1 parent 5b78382 commit 7c12771
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Expand Up @@ -89,6 +89,7 @@ RUN \
# https://github.com/netdata/netdata/wiki/netdata-security#netdata-directories
chown -R root:netdata /etc/netdata && \
chown -R netdata:netdata /var/cache/netdata /var/lib/netdata /usr/share/netdata && \
chown -R root:netdata /usr/lib/netdata && \
chown -R root:netdata /usr/libexec/netdata/plugins.d/apps.plugin /usr/libexec/netdata/plugins.d/cgroup-network && \
chmod 4750 /usr/libexec/netdata/plugins.d/cgroup-network /usr/libexec/netdata/plugins.d/apps.plugin && \
chmod 0750 /var/lib/netdata /var/cache/netdata && \
Expand Down

0 comments on commit 7c12771

Please sign in to comment.