Skip to content

Commit

Permalink
Merge pull request #2306 from davewongillies/grafana_ini_perms
Browse files Browse the repository at this point in the history
set mode 0640 and group grafana on /etc/grafana/grafana.ini
  • Loading branch information
torkelo committed Jul 8, 2015
2 parents afcc388 + a958965 commit c2da541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packaging/deb/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ case "$1" in
chmod 755 /var/log/grafana /var/lib/grafana

# configuration files should not be modifiable by grafana user, as this can be a security issue
chown -Rh root:root /etc/grafana/*
chown -Rh root:$GRAFANA_GROUP /etc/grafana/*
chmod 755 /etc/grafana
find /etc/grafana -type f -exec chmod 644 {} ';'
find /etc/grafana -type f -exec chmod 640 {} ';'
find /etc/grafana -type d -exec chmod 755 {} ';'

# if $2 is set, this is an upgrade
Expand Down
4 changes: 2 additions & 2 deletions packaging/rpm/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ if [ $1 -eq 1 ] ; then
chmod 755 /var/log/grafana /var/lib/grafana

# configuration files should not be modifiable by grafana user, as this can be a security issue
chown -Rh root:root /etc/grafana/*
chown -Rh root:$GRAFANA_GROUP /etc/grafana/*
chmod 755 /etc/grafana
find /etc/grafana -type f -exec chmod 644 {} ';'
find /etc/grafana -type f -exec chmod 640 {} ';'
find /etc/grafana -type d -exec chmod 755 {} ';'

if [ -x /bin/systemctl ] ; then
Expand Down

0 comments on commit c2da541

Please sign in to comment.