# 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 ```