This commit is contained in:
2026-06-18 09:37:29 +03:00
parent 21fb4704a6
commit db5f174ef3
20 changed files with 534 additions and 10 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
# ButtonTask: allow the unprivileged web configurator to run only the three
# ButtonTask: allow the unprivileged web configurator to run only the
# tightly-scoped helper scripts as root, without a password.
#
# Install:
@@ -6,6 +6,7 @@
# buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-netconfig
# buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-update
# buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-service
# buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-settime
# EOF
# sudo chmod 0440 /etc/sudoers.d/buttontask
# sudo visudo -cf /etc/sudoers.d/buttontask # validate
@@ -17,3 +18,4 @@
buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-netconfig
buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-update
buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-service
buttontask ALL=(root) NOPASSWD: /opt/buttontask/scripts/bt-settime