Update README.md with sudo visudo entries.

pull/14/head
necro-nemesis 5 years ago
parent efea2b1291
commit 3b4cb7465b

@ -78,6 +78,9 @@ 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 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:/sbin/ifdown wlan0
www-data ALL=(ALL) NOPASSWD:/sbin/ifup wlan0
www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf
@ -173,4 +176,3 @@ Please note that these are only UI's for now. If there's enough interest I'll co
## License
See the [LICENSE](./LICENSE) file.

@ -44,7 +44,6 @@ function install_warning() {
function display_welcome() {
raspberry='\033[0;35m'
green='\033[1;32m'
echo -e "${green}\n"
echo -e ooooo oooo o8o .o. ooooooooo.""
echo -e `888' `888 `"' .888. `888 `Y88.""

Loading…
Cancel
Save