brianhornsby / script.openvpn

A script that allows you to control OpenVPN from within Kodi.
http://brianhornsby.com/kodi_addons/openvpn
GNU General Public License v3.0
91 stars 30 forks source link

Kodibuntu requires root password #42

Closed bazzlad closed 2 years ago

bazzlad commented 8 years ago

Not sure if bug or design, but this when using Kodibuntu 14.0, the VPN will fail unless you have the following checked in the "Script" sections of settings:

1) "Use sudo when running OpenVPN" and 2) "Password is required"

Unchecking "Password is required" causes the script to fail.

Aside from that, it works great - thanks!

joswart commented 8 years ago

If you need sudo to start openvpn (which you can check on the console) then the behavior you are seeing is expected and normal.

The options actually do what the system requires them to do ;-)

vdeapps commented 8 years ago

For use openvpn with sudo without password, edit this file: /etc/sudoers.d/openvpn And put: your_username ALL = NOPASSWD: /usr/sbin/openvpn

Thus you can run openvpn with your username without password: sudo openvpn --config openvpnfile