wagon/README.md

19 lines
354 B
Markdown
Raw Normal View History

2022-08-27 21:25:53 -06:00
# wgapi
2022 Keith Irwin (ki9.gf4.pw)
### Allow cgi scripts to run as root
To ensure the `srv/send/wg` and `srv/send/ssl` commands can run as root, run
```sh
sudo visudo
```
And add these lines:
```
# Let http run these cgi scripts as root
http ALL=(ALL) NOPASSWD: /path/to/wgapi/srv/send/ssl
http ALL=(ALL) NOPASSWD: /path/to/wgapi/srv/send/wg
```