How to set Protovvpn to not ask me a password every time when I connect ?
Also I login in with my main account username and password, but then while connecting it asks me again for password and only valid one is from OpenVPN / IKEv2 username.
First, make a polkit rule for it: sudo touch /etc/polkit-1/rules.d/20-protonvpn.rules
Then, use your editor of choice to open it: SUDO_EDITOR=kate sudoedit /etc/polkit-1/rules.d/20-protonvpn.rules
The file should contain the following:
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
After that, add your user to the “wheel” group: sudo usermod -a -G wheel $USER
Now, restart and it’ll work! I’ve wanted to make a video on this for a while, but haven’t had time. I hope to make one soon for other SUSE users having issues with needing the password every time to connect/disconnect/etc.
I suspect they there is nothing ProtonVPN can do about that.
That’s a good thing - in general, you would not want random apps to be able to bypass the OS privileges model.
I don’t know that WireGuard will make much of a difference.
On OpenBSD, I have to use doas (sort of the equivalent of sudo) to run the wg-quick tools that set up WireGuard connection.
If you add yourself to sudoers (I think that’s the right term), then you should be able to use sudo to execute whatever tool you use to start vpn without a password.