However, I have discovered another problem. The non-root user does not have permission to control the network connections. The Enable Network and Enable Wifi menu items are grayed out and, if I go to Edit Connections and select either connection, the Edit button is grayed out. I tested with the root userid, and it has no problem controlling the connections.
So, I installed the polkit rule in /etc/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules. My userid is a member of the group netdev. However, this does not resolve the problem.
Code: Select all
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
return polkit.Result.YES;
}
});
Code: Select all
$ pkaction --verbose --action-id org.freedesktop.NetworkManager.enable-disable-wifi
org.freedesktop.NetworkManager.enable-disable-wifi:
description: Enable or disable WiFi devices
message: System policy prevents enabling or disabling WiFi devices
vendor: NetworkManager
vendor_url: http://www.gnome.org/projects/NetworkManager
icon: nm-icon
implicit any: no
implicit inactive: no
implicit active: yes