From f2fd0cf8725187f72a19f4403814cd2d535d6a20 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 2 Dec 2023 18:47:30 -0700 Subject: [PATCH] fix: :bug: Add wg-quick to NOPASSWD for www-data --- back/dashboard.Dockerfile | 2 +- back/fed.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/dashboard.Dockerfile b/back/dashboard.Dockerfile index 3d5d4ae..b5ae237 100644 --- a/back/dashboard.Dockerfile +++ b/back/dashboard.Dockerfile @@ -19,7 +19,7 @@ RUN sed -i -e "s/^$//" \ /etc/apache2/sites-available/000-default.conf # Allow http user to run these binaries as root with sudo -RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/openssl, /usr/bin/[, /usr/bin/tee, /bin/cat, /bin/mkdir, /bin/rm, /bin/chmod, /bin/chgrp" \ +RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/wg-quick, /usr/bin/openssl, /usr/bin/[, /usr/bin/tee, /bin/cat, /bin/mkdir, /bin/rm, /bin/chmod, /bin/chgrp" \ | sudo EDITOR='tee -a' visudo # Copy over cgi and libs diff --git a/back/fed.Dockerfile b/back/fed.Dockerfile index 7433a4b..2a9eb92 100644 --- a/back/fed.Dockerfile +++ b/back/fed.Dockerfile @@ -18,7 +18,7 @@ RUN sed -i -e "s/^$//" \ /etc/apache2/sites-available/000-default.conf # Allow http user to run these binaries as root with sudo -RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/[, /usr/bin/tee" \ +RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/wg-quick, /usr/bin/[, /usr/bin/tee" \ | sudo EDITOR='tee -a' visudo # Copy over cgi and libs