[ConsoleKit] Authenticating for org.bluez/org.blueman as a normal user
Fabrice DELENTE
delentef at gmail.com
Thu Feb 23 10:18:21 PST 2012
Hello.
I'm trying to get blueman to work on my personal laptop, on which I am
the only user.
I can start and use blueman-applet as root.
However, as a user, I get this kind of error:
set_nap (/usr/lib/python2.7/site-packages/blueman/plugins/applet/Networking.py:80)
set nap False
ERROR:dbus.proxies:Introspect error on org.bluez:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.94" (uid=1000 pid=5961 comm="/usr/bin/python /usr/bin/blueman-applet ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1841 comm="/usr/sbin/bluetoothd --udev ")
or
Run (/usr/lib/python2.7/site-packages/blueman/main/PluginManager.py:216)
Function on_manager_state_changed on Networking Failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/blueman/main/PluginManager.py", line 220, in Run
ret = getattr(inst, function)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/blueman/plugins/applet/Networking.py", line 45, in on_manager_state_changed
self.update_status()
File "/usr/lib/python2.7/site-packages/blueman/plugins/applet/Networking.py", line 69, in update_status
self.set_nap(self.Config.props.nap_enable or False)
File "/usr/lib/python2.7/site-packages/blueman/plugins/applet/Networking.py", line 83, in set_nap
adapters = self.Applet.Manager.ListAdapters()
File "/usr/lib/python2.7/site-packages/blueman/bluez/utils.py", line 28, in warp
raise errors.parse_dbus_error(exception)
DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.94" (uid=1000 pid=5961 comm="/usr/bin/python /usr/bin/blueman-applet ") interface="org.bluez.Manager" member="ListAdapters" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1841 comm="/usr/sbin/bluetoothd --udev ")
as well as
Run (/usr/lib/python2.7/site-packages/blueman/main/PluginManager.py:216)
Function on_manager_state_changed on AuthAgent Failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/blueman/main/PluginManager.py", line 220, in Run
ret = getattr(inst, function)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/blueman/plugins/applet/AuthAgent.py", line 49, in on_manager_state_changed
adapters = self.Applet.Manager.ListAdapters()
File "/usr/lib/python2.7/site-packages/blueman/bluez/utils.py", line 28, in warp
raise errors.parse_dbus_error(exception)
DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.94" (uid=1000 pid=5961 comm="/usr/bin/python /usr/bin/blueman-applet ") interface="org.bluez.Manager" member="ListAdapters" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1841 comm="/usr/sbin/bluetoothd --udev ")
Somebody on the D-Bus mailing list told me that it was fixable but
configuring the consolekit correctly.
I read and tried to understand the manpages of policykit and console
kit, but it is very confusing and hard to understand for me.
I have come to create the file
/etc/polkit-1/localauthority/50-local.d/bluezauthority.conf with,
inside,
[Permissions for fab on Bluez]
Identity=unix-user:fab
Action=org.blueman;org.blueman.*
ResultAny=no
ResultInactive=no
ResultActive=yes
but it hasn't solved the problem.
Can anyone help?
Thanks!
--
F. Delente
More information about the ConsoleKit
mailing list