Skip to content

Commit

Permalink
fix 2.8.0 permissions issue
Browse files Browse the repository at this point in the history
2.8.0 uses /var/state/ups instead of /var/run/nut folder, add permissioning for correct folder access
  • Loading branch information
desertwitch committed Jul 26, 2023
1 parent 3491b31 commit 6c4d6da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/nut/etc/rc.d/rc.nut
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ write_config() {
chmod 640 /etc/nut/*
chown root:nut /var/run/nut
chmod 0770 /var/run/nut
chown root:nut /var/state/ups
chmod 0770 /var/state/ups
#chown -R 218:218 /etc/nut
#chmod -R 0644 /etc/nut
fi
Expand Down

0 comments on commit 6c4d6da

Please sign in to comment.