Summary: | In plasmoid-networkmanagement root password is asked unnecessarily(?) and endlessly for mobile broadband statistics which finally cannot be displayed | ||
---|---|---|---|
Product: | [Unmaintained] Network Management | Reporter: | Tamás Németh <nt1277> |
Component: | Mobile Broadband | Assignee: | Lamarque V. Souza <lamarque> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lamarque |
Priority: | NOR | ||
Version: | 0.9 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tamás Németh
2011-02-21 13:09:12 UTC
ModemManager protects part of its dbus interface through policy kit. When someone tries to make a dbus call to one of the methods in that interface policy kit will ask for root password. You can configure policy kit to let you access the API without password. In my notebook I added the file /etc/polkit-1/localauthority/50-local.d/10-org.notebook.pkla: [Normal Staff Permissions] Identity=unix-group:wheel Action=org.freedesktop.ModemManager.* ResultAny=auth_admin ResultInactive=auth_admin ResultActive=yes Anybody in the wheel group will get access to ModemManager's dbus interfaces. That change can also be done using KDE's policy kit configurator, which I have never used and only works in KDE SC 4.6.x. I created that file during KDE SC 4.5.x period, which did not have a policy kit configurator, so I had to use the configuration file directly. (In reply to comment #1) > ModemManager protects part of its dbus interface through policy kit. When > someone tries to make a dbus call to one of the methods in that interface > policy kit will ask for root password. You can configure policy kit to let you > access the API without password. > > In my notebook I added the file > /etc/polkit-1/localauthority/50-local.d/10-org.notebook.pkla: > > [Normal Staff Permissions] > Identity=unix-group:wheel > Action=org.freedesktop.ModemManager.* > ResultAny=auth_admin > ResultInactive=auth_admin > ResultActive=yes > > Anybody in the wheel group will get access to ModemManager's dbus interfaces. > That change can also be done using KDE's policy kit configurator, which I have > never used and only works in KDE SC 4.6.x. I created that file during KDE SC > 4.5.x period, which did not have a policy kit configurator, so I had to use the > configuration file directly. Thank you for the explanation. Git commit c2d276b2e3635d0bc2f3f15ee20efd01209db01b by Lamarque V. Souza. Committed on 22/02/2011 at 18:32. Pushed by lvsouza into branch 'master'. These calls are protected by policy kit. Without proper configuration policy kit agent will ask for password, which is bothering users (BUG 266807). Plasma NM still does not use this information, so I will leave them commented until I really need them. BUG: 266807 M +7 -2 applet/interfacedetailswidget.cpp http://commits.kde.org/networkmanagement/c2d276b2e3635d0bc2f3f15ee20efd01209db01b |