Disabling 'system policy prevents modification of network settings for all users' on Aeon

I’m using OpenSUSE Aeon here.

I wonder if there is anyway to disable ‘system policy prevents modification of network settings for all users’ when establishing a new wifi or VPN connection. I saw it every time when I tried to connect to connect Proton VPN (Flatpak), and I suspect this is causing me unable to establish VPN connection.

I have tried the solution in this post, which didn’t work.

I have also tried to create 90-default-privs.rules under /etc/polkit-1/rules.d/ with the following lines, which also didn’t work.

polkit.addRule(function(action, subject) {
   if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
       subject.isInGroup ("users")) {
       return polkit.Result.YES;
   }
});

Anyone might know how to solve the problem on Aeon?

@highgrounder Hi, you set (as in select the check box) this via Settings → Network (as in NetworkManager) for the connection profile.

Have you verified that the calling process is in the group users?

Could you elaborate? I’m pretty much a layperson.

Hi
Add or edit the connection?

Do you mean to deselect the ‘make available to other users’ setting? My ProtonVPN Flatpak app is not able to create a Wireguard VPN connection, but still gives me this pop-up.

We have no idea what you did. Show exactly what you did (which files you changed, what commands you run), then we may be able to see what was incorrect.

I added org.freedesktop.NetworkManager.settings.modify.system yes at the end of /etc/polkit-1/rules.d/90-default-privs.rules. Then I ran sudo /usr/sbin/set_polkit_default_privs and rebooted.

After everything I’ve done /etc/polkit-1/rules.d/90-default-privs.rules just reverted back to the original.

This file is from Leap. It is not used on Tumbleweed. I have no idea where this file comes from in your case. On Tumbleweed it is /etc/polkit-default-privs/local.

Sorry I didn’t give you the correct location of the rule file I was editing in my last reply. I have corrected it.

I only have /etc/polkit-1/rules.d/on Aeon. Should I create a rule file under /etc/polkit-1/rules.d/local instead?

No. You should add the line org.freedesktop.NetworkManager.settings.modify.system yes to the /etc/polkit-default-privs/local and run /usr/sbin/set_polkit_default_privs.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.