Comment 5 for bug 50770

Revision history for this message
GeekSmith (lixo-geeksmith) wrote :

I've seen this inconsistently in both Dapper and Edgy when I ran knetworkmanager as a normal user. It always worked when I ran it using kdesu. When started as a normal user from the command line it shows this error:
Error requesting name, org.freedesktop.DBus.Error.AccessDenied: Connection ":1.6" is not allowed to own the service "org.freedesktop.NetworkManagerInfo" due to security policies in the configuration file

So, I added this:
<policy user="|my_username|">
   <allow own="org.freedesktop.NetworkManagerInfo"/>
   <allow send_destination="org.freedesktop.NetworkManagerInfo"/>
   <allow send_interface="org.freedesktop.NetworkManagerInfo"/>
</policy>

to the following files:
/etc/dbus-1/system.d/knetworkmanager.conf
/etc/dbus-1/system.d/NetworkManager.conf

and it works every time now. A less restrictive default policy might clear this up for everybody.

@@ron Smith
http://geeksmith.blogspot.com/