I want to control Network manager from the command-line. This worked well enough in Ubuntu 10.04 (with cnetworkmanager, nmcli is another possible choice).
Since the upgrade to Ubuntu 10.10 however, a D-Bus exception is raised when I attempt to activate a connection from within a SSH terminal:
org.freedesktop.NetworkManager.PermissionDenied: Not authorized to control networking.
It may have to do with /etc/dbus-1/system.d/NetworkManager.conf; where else to look for a clue ?
This issue occurs only when I am ssh'd into the machine; in a gnome session I don't get the same issue -- with the same (admin) user account in both cases.