zdave / openconnect-gp-okta

OpenConnect wrapper which logs into a GlobalProtect gateway, authenticating with Okta
37 stars 27 forks source link

Add flag for enabling sudo on the openconnect subprocess #4

Closed googol closed 4 years ago

googol commented 4 years ago

The openconnect process needs to be run as root so that it can configure the network interfaces, but I don't feel comfortable running the entire wrapper as sudo. With this change you can add the --sudo flag to run the subprocess only as root. It is by default disabled (and can also explicitly disabled with --no-sudo)

zdave commented 4 years ago

Thanks!

googol commented 4 years ago

Thank you for enabling my vpn connection on linux! :D