From 73195281e3c08e17d9228833e7fb319838d6a753 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Mon, 1 Apr 2019 17:55:58 -0400 Subject: [PATCH] wildcard visudo lokilaunch.sh arguments --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 79f8550..152cb4a 100644 --- a/README.md +++ b/README.md @@ -80,10 +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 +www-data ALL=(ALL) NOPASSWD:/home/pi/loki-network/lokilaunch.sh* www-data ALL=(ALL) NOPASSWD:/sbin/ifdown wlan0 www-data ALL=(ALL) NOPASSWD:/sbin/ifup wlan0 www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf