This can be cured by fixing PolicyKit rule for the NetworkManager. First of all check whether
.pkla file with
[nm-applet] section already exists in
/etc/polkit-1/localauthority/10-vendor.d. If yes, make a backup of it and alter
ResultAny=no value to
[nm-applet] section of this file.
The structure of these policy rule files is described here.
If this file is absent in
10-vendor.d folder, we will create PolicyKit rule manually. Create the file with the name
org.freedesktop.NetworkManager.pkla containing the next lines:
Replace your_username in this file with your real login name. If you wish to add several users, change the
Identity entry like this (and replace usernames with the desired ones):
If you wish to add even more users, then you should consider adding all of them to
netdev group with
useradd and change the rule to:
Now copy this
.pkla file to the PolicyKit directory:
sudo cp org.freedesktop.NetworkManager.pkla /etc/polkit-1/localauthority/50-local.d/
You should also check whether PolicyKit Authentication Agent is running - this rule won't work without it. If
ps -ef | grep kit | grep agent returns nothing, then it isn't running.
Check whether this binary exists. For GNOME this file can be found here:
For MATE it is located here (for 32-bit and 64-bit respectively):
Its location may vary in different DE. If it was not found there, seek for it:
locate agent | grep -v -E '^/var|doc|so|helper' | grep pol
If you found nothing, then PolicyKit Agent isn't installed at all. Search for the package name in APT database with
apt-cache search PolicyKit Authentication Agent command and install appropriate package for your DE. For MATE it will be
It doesn't start automatically for some reason. You can search
/etc/xdg/autostart for the PolKit Agent
.desktop launcher and analyze why it fails to start. Or you can create your own launcher using "Startup Applications" of your DE and add the Polkit Authentication Agent command to start it properly.
If you are interested, there's an extensive and nice article about PolicyKit privileges.