how to get rid of "System policy prevents modification of network settings for all users"

using plasma5, how can I get rid of “System policy prevents modification of network settings for all users” message when a user try to connect to a wi fi network??
I tried this fron google
change in /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy

located the following line of code:
System policy prevents modification of network settings for all users
at the end of section
change

<allow_active>auth_admin_keep</allow_active>

in

<allow_active>yes</allow_active>

it doesn,t works

I changed all the three lines at the bottom of section in

<allow_any>yes</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>

but it doesn’t works.
how can I solve??

Read this guide:
https://doc.opensuse.org/documentation/leap/security/html/book.security/cha.security.policykit.html

Your custom rules should be added to /etc/polkit-1/rules.d/

A simple (openSUSE-specific) way to do this is also described under the section “Modifying Configuration Files for Implicit Privileges” in that guide.

Edit /etc/polkit-default-privs.local and add the following entry

org.freedesktop.NetworkManager.settings.modify.system auth_admin_keep:yes:yes

Save then run (as root)

/sbin/set_polkit_default_privs

It will take effect next time you log out and log back in again.

1 Like

manythanks deano it worked:), but now (may be also before but…) to store wi fi password I had to store for all users becouse storing for “this user only” doesn’t works… may be becouse I disable kde wallet??

Yes, if you’re configuring as a system connection then you need need to store the password for all users ie in the connection configuration file itself.