How to get rid of entering root password to control networks on startup

PolicyKit is somehow asking me for root password on startup every single time, to enable and control networks via Network Manager.

I tried this solution
The Polkit authentication framework | Security and Hardening Guide | openSUSE Leap 15.6)
Basically editing a local policy kit file to add a custom rule to allow networkcontrol for user, and then executing policy kit again, but it doesn’t work. Every time I startup the system it asks for the password again. How can I solve this?

@afoh check the box allow for all users, enter root password and never be asked again…

Where is that box located?

I’m using KDE

@afoh It will be under the wireless (or wired) connection properties. I’m on GNOME, but should see something like;

Screenshot from 2024-08-09 21-20-50

It was usually called “system connection” on KDE.

I couldnt find it in KDE settings or anywhere, there was an all users option but it was blocked out, couldnt even click it, I had to do what was discouraged, to directly edit the /etc/polkit-1/rules.d file with nano, searched for NetworkManager, found the network-control rule, and changed all the strings to “yes”. Supposedly this shouldnt be a solution since that file says Do not edit this file directly, but it solved it. Couldnt find another way to directly edit policy kit rules with a GUI. Actually Im no fan of NetworkManager, too complicated.

It is only a few clicks to reach the settings. And if you don’t want that everybody can use the connection, simply define the allowed users via the advanced button next to the red marked area in the screenshots.

Via Systemsettings-> WiFi ¬ Internet

Or via the Networkmanager applet itself:
Bildschirmfoto_20240810_175256

I checked there, the option wasn’t showing, in the button that says “Advanced” it said something about all users. Now it shows. It’s solved anyway.

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