From 21ab7466678d34e873fb9bc2d90848b4015788fa Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 31 Mar 2019 21:15:20 -0400 Subject: [PATCH] add line to visudo requirements --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 97413b1..79f8550 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ Now comes the fun part. For security reasons, the `www-data` user which lighttpd So what I have done is added the `www-data` user to the sudoers file, but with restrictions on what commands the user can run. Add the following to the end of `/etc/sudoers`, substituting your wireless interface for `wlan0` if needed: ```sh +www-data ALL=(ALL) NOPASSWD:/home/pi/loki-network/lokilaunch.sh bootstrap www-data ALL=(ALL) NOPASSWD:/home/pi/loki-network/lokilaunch.sh gen www-data ALL=(ALL) NOPASSWD:/home/pi/loki-network/lokilaunch.sh start www-data ALL=(ALL) NOPASSWD:/home/pi/loki-network/lokilaunch.sh stop