-
-
Notifications
You must be signed in to change notification settings - Fork 192
Description
I am running gpclient 2.0.0 (2024-02-05) on an openSUSE 15.5 system. I am trying to connect to a VPN server that uses MFA.
The command I am using is
gpclient connect [path to gateway]
If I run this command as an ordinary user a browser window opens for MFA. After I've authenticated myself successfully gpclient cannot finish setting up the VPN because it lacks root privileges.
[2024-02-07T10:38:44Z WARN openconnect::ffi] Failed to bind local tun device (TUNSETIFF): Operation not permitted [2024-02-07T10:38:44Z WARN openconnect::ffi] To configure local networking, openconnect must be running as root See https://www.infradead.org/openconnect/nonroot.html for more information
I didn't understand the instructions linked to in the error well enough to implement because they seem to refer to openconnect directly. Is there a way to pass some of the workarounds listed there to gpclient?
If I run gpclient with sudo then I get the error
(gpauth:18869): Gtk-WARNING **: 10:33:37.566: cannot open display:
If I switch to root via su and run gpclient then I get the error
Error: Command { std: "/usr/bin/gpauth" "[server]" "--saml-request" "[long url]" "--user-agent" "PAN GlobalProtect" "--os" "Linux" "--os-version" "Linux openSUSE Leap 15.5", kill_on_drop: false } cannot be run as root
What is the way around this? How can I run the authentication part as a normal user with the VPN tunnel creation part run with root privileges?