Ubuntu allow a normal user to edit WiFi Connection
When a normal user edit Wi-Fi connection on Wi-Fi Settings, they will be asked to enter administrator user pasword.
To allow a normal user to modify network connection, you can edit the connection configuration file in folder
1 |
/etc/NetworkManager/system-connections |
This file look like
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
root@sok-01:/etc/NetworkManager/system-connections# cat SOK [connection] id=SOK uuid=982596a7-44c8-4e52-a696-6acf4daeec12 type=wifi permissions= [wifi] mac-address=E8:DE:27:0B:39:55 mac-address-blacklist= mode=infrastructure ssid=SOK [wifi-security] auth-alg=open key-mgmt=wpa-psk psk=Sup3rD0nkey [ipv4] dns-search= method=auto [ipv6] addr-gen-mode=stable-privacy dns-search= method=auto root@sok-01:/etc/NetworkManager/system-connections# |
Find
1 |
permissions= |
Replace with
1 |
permissions=user:USER_NAME_HEARE:; |
USER_NAME_HEARE = replace this with actual username, that need to edit the network configuration.