Reply to topic

udisks and permissions

User avatar phil_r
Registered Member
Posts
5
Karma
0
OS

udisks and permissions

Tue Feb 08, 2011 4:14 pm
(Posting in Workspace because it seems the closest forum to use)
Hey everyone... as we all know, 4.6.0 dumps HAL and goes udisks for mounting/managing devices. Fine. Except - as a regular user, I can't mount a USB or DVD anymore.

I went into System Settings, into the new Policy app (can't remember what it's called right now), went into org.freedesktop, expanded udisks, found the "Mount a removable device" option. Set it to "Yes" for allowed. Hit apply. Click off it, click back on, it's reverted back to "No". So it's impossible for me (as a regular user) to do anything with removable devices.

Of course if I launch Dolphin as root, it works perfectly. Of course.

Any ideas how I can make this work? It's Gentoo, BTW.

PS - I just took a look at /etc/group and although I'm in cdrom and usb, I'm not in disk. Would that make a difference? (I'm ssh'd in remotely so I can't actually try it right now)


phil_r, proud to be a member of KDE forums since 2008-Oct.
User avatar TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: udisks and permissions

Tue Feb 08, 2011 6:12 pm
You shouldn't need to be a member of the disk group if the permissions are set up correctly. I'm not, for instance.

Have you checked to make sure you have permission to change policy settings?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar phil_r
Registered Member
Posts
5
Karma
0
OS

Re: udisks and permissions

Tue Feb 08, 2011 7:15 pm
Fair comment, how would I do that? This policy stuff is fairly new to me.


phil_r, proud to be a member of KDE forums since 2008-Oct.
User avatar phil_r
Registered Member
Posts
5
Karma
0
OS

Re: udisks and permissions

Mon Feb 14, 2011 8:11 pm
Badda bing, badda bang, badda bump... anyone? Hello? Bueller?


phil_r, proud to be a member of KDE forums since 2008-Oct.
User avatar TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: udisks and permissions

Mon Feb 14, 2011 9:09 pm
It is in the same place you set the policy for disks, you need to go to org.kde -> system policy settings. It is one of those, although I am not sure which one (probably either "change explicit authorizations" or "change implicit authorizations", probably the former).


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar phil_r
Registered Member
Posts
5
Karma
0
OS

Re: udisks and permissions

Thu Feb 17, 2011 5:12 pm
I tried changing those, it just doesn't store the settings. I set them, hit apply, click to a different option, click back, and they've reset.


phil_r, proud to be a member of KDE forums since 2008-Oct.
User avatar xywa
Registered Member
Posts
48
Karma
0
OS

Re: udisks and permissions

Wed May 25, 2011 5:29 am
phil_r wrote:I tried changing those, it just doesn't store the settings. I set them, hit apply, click to a different option, click back, and they've reset.


I have the same :(
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: udisks and permissions

Wed May 25, 2011 5:48 am
In order for the settings panel to operate properly, you need to have an operational PolicyKit stack. This requires that Qt is compiled with Glib integration enabled. Please ensure Qt is built with Glib integration enabled (which is the Gentoo default I believe if you are using PolicyKit components - which is again the default when using KDE packages)


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar xywa
Registered Member
Posts
48
Karma
0
OS

Re: udisks and permissions

Wed May 25, 2011 10:01 am
bcooksley wrote:In order for the settings panel to operate properly, you need to have an operational PolicyKit stack. This requires that Qt is compiled with Glib integration enabled. Please ensure Qt is built with Glib integration enabled (which is the Gentoo default I believe if you are using PolicyKit components - which is again the default when using KDE packages)


You mean polkit or policykit? What should I install form the list bellow?

* sec-policy/selinux-policykit [ Masked ]
Latest version available: 2.20101213
Latest version installed: [ Not Installed ]
Size of files: 546 kB
Homepage: http://www.gentoo.org/proj/en/hardened/selinux/
Description: SELinux policy for general applications
License: GPL-2

* gnome-extra/polkit-gnome
Latest version available: 0.101-r1
Latest version installed: 0.101-r1
Size of files: 398 kB
Homepage: http://hal.freedesktop.org/docs/PolicyKit/
Description: A dbus session bus service that is used to bring up authentication dialogs
License: GPL-2 LGPL-2

* kde-misc/polkit-kde-kcmodules
Latest version available: 0.98_pre20101127
Latest version installed: 0.98_pre20101127
Size of files: 25 kB
Homepage: http://www.kde.org
Description: PolKit agent module for KDE.
License: GPL-2

* lxde-base/lxpolkit
Latest version available: 0_p20110329
Latest version installed: [ Not Installed ]
Size of files: 111 kB
Homepage: http://lxde.git.sourceforge.net/git/git ... ;a=summary
Description: A simple PolicyKit authentication agent
License: GPL-3

* sys-auth/polkit
Latest version available: 0.101-r1
Latest version installed: 0.101-r1
Size of files: 1,047 kB
Homepage: http://hal.freedesktop.org/docs/polkit/
Description: Policy framework for controlling privileges for system-wide services
License: GPL-2

* sys-auth/polkit-kde
Latest version available: 0.95.1-r1
Latest version installed: [ Not Installed ]
Size of files: 20 kB
Homepage: http://kde.org
Description: PolicyKit integration module for KDE.
License: GPL-2

* sys-auth/polkit-kde-agent
Latest version available: 0.99.0
Latest version installed: 0.99.0
Size of files: 33 kB
Homepage: http://www.kde.org
Description: PolKit agent module for KDE.
License: GPL-2

* sys-auth/polkit-qt
Latest version available: 0.99.0
Latest version installed: 0.99.0
Size of files: 65 kB
Homepage: http://kde.org/
Description: PolicyKit Qt4 API wrapper library.
License: LGPL-2
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: udisks and permissions

Thu May 26, 2011 4:55 am
Due to a rename at one point, both projects are the same - just different versions. PolKit is the new name I believe. Not sure which of those you need, might be best to consult someone more experienced with Gentoo. sys-auth/polkit-qt will definitely be required.

Not sure how kde-misc/polkit-kde-kcmodules, sys-auth/polkit-kde and sys-auth/polkit-kde-agent fit together though - someone possibly oversplit KDE's PolKit integration...


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
madkinder
Registered Member
Posts
1
Karma
0
OS
It seems that this is a known bug which affects only Gentoo users. People resort to editing the policies by hand :(, but I think it is not a way to go, since a nice editor is already created, we only need to make it work.
bcooksley wrote:Please ensure Qt is built with Glib integration enabled (which is the Gentoo default I believe if you are using PolicyKit components - which is again the default when using KDE packages)
I made sure both Qt and KDE libs are compiled with glib enabled (as well as those guys on the Gentoo forum) but no luck - the changes are getting reset silently. Is there anything I can help with to narrow down the problem any further?
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: udisks and permissions

Thu Jul 07, 2011 10:57 pm
It could be possible that the D-Bus activation of the PolKit helper, or the method the helper itself uses to make the changes to your system are not successful on your Gentoo system for some reason.

Unfortunately I don't know how to debug the agents. The system wide logs may contain further information on how it is failing.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar reginod
Registered Member
Posts
2
Karma
0
OS

Re: udisks and permissions

Sat Jul 16, 2011 6:03 am
i am having the same problems with kde-4.6.5
when i try to use system settings action policy none of the changes take.
when i noticed this entry in syslog:
Jul 15 22:06:33 davesbox console-kit-daemon[1898]: WARNING: Failed to acquire org.freedesktop.ConsoleKit
Jul 15 22:06:33 davesbox console-kit-daemon[1898]: WARNING: Could not acquire name; bailing out
I found this odd, so i manually started polkit:
after i restarted consolekit

killall /usr/libexec/polkitd
/usr/libexec/polkitd
and obtained some interesting output in Konsole:
(polkitd:3157): GLib-GIO-WARNING **: Tried to implement non-registered extension point polkit-backend-action-lookup-1
** (polkitd:3157): DEBUG: Added `/var/lib/polkit-1/localauthority/10-vendor.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/etc/polkit-1/localauthority/10-vendor.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/var/lib/polkit-1/localauthority/20-org.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/etc/polkit-1/localauthority/20-org.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/var/lib/polkit-1/localauthority/30-site.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/etc/polkit-1/localauthority/30-site.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/var/lib/polkit-1/localauthority/50-local.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/etc/polkit-1/localauthority/50-local.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/var/lib/polkit-1/localauthority/90-mandatory.d' as a local authorization store
** (polkitd:3157): DEBUG: Added `/etc/polkit-1/localauthority/90-mandatory.d' as a local authorization store
** (polkitd:3157): DEBUG: Monitoring `/var/lib/polkit-1/localauthority' for changes
** (polkitd:3157): DEBUG: Monitoring `/etc/polkit-1/localauthority' for changes
Using authority class PolkitBackendLocalAuthority
Acquired the name org.freedesktop.PolicyKit1

and when i tried action policy in system settings to change explicit authorizations for an action this happened in konsole:

QDBusMarshaller: type `PKLAEntry' (292) is not registered with D-BUS. Use qDBusRegisterMetaType to register it
QDBusMarshaller: type `PKLAEntry' (292) is not registered with D-BUS. Use qDBusRegisterMetaType to register it
QDBusMarshaller: type `PKLAEntry' (292) is not registered with D-BUS. Use qDBusRegisterMetaType to register it
QDBusConnection: error: could not send message to service "org.kde.polkitkde1.helper" path "/Helper" interface "org.kde.polkitkde1.helper" member "writePolicy": Marshalling failed: Unregistered type PKLAEntry passed in arguments

hmm rather odd, perhaps a Dbus problem. Anyways i was hoping someone would understand this better here than i would. 8)
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: udisks and permissions

Mon Jul 18, 2011 5:00 am
You seem to be affected by https://bugs.kde.org/show_bug.cgi?id=266467 unfortunately.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar reginod
Registered Member
Posts
2
Karma
0
OS

Re: udisks and permissions

Sat Jul 23, 2011 1:39 am
guess i will hang tough until this is resolved. I can manually edit
the configuration files to get it to work. Would be nice to be able
to use systemsettings gui for this ...
:-\

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], clavierarabes, Google [Bot], kde-wheezy, korgoroth, madjoe, Sogou [Bot], Yahoo [Bot]