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

September 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:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.