Ubuntu Prompt System Policy Prevents Modification of Network Settings for All Users

Sep 13, 2020
Remove sudo password prompt when connecting to wifi

Edit /etc/polkit-1/localauthority/50-local.d/10-network-manager.pkla (the file might not exist)

sudo nano /etc/polkit-1/localauthority/50-local.d/10-network-manager.pkla
[Let all users modify system settings for network]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.settings.modify.system
ResultAny=no
ResultInactive=no
ResultActive=yes

NOTE: You can change Identity=unix-user:USERNAME to target specific user.

NOTE: There are other action such as org.freedesktop.NetworkManager.settings.enable-disable-network, or you could use a wildcard org.freedesktop.NetworkManager.*

Restart Network Manager

service network-manager restart

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.