Skip to content

Commit

Permalink
fix permissions for config files in a container (netdata#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 kiku-jw committed Mar 4, 2019
1 parent 7fa95b3 commit e53a091
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 e53a091

Please sign in to comment.