Bug 50205

Summary: udisks-1.97.0 wants root password to mount my mp3 device
Product: udisks Reporter: Pacho Ramos <pachoramos1>
Component: detectionAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: udisksd output
udisksctl_dump

Description Pacho Ramos 2012-05-22 02:42:35 UTC
Created attachment 61944 [details]
udisksd output

As reported downstream at:
https://bugs.gentoo.org/show_bug.cgi?id=417035

Behavior has changed when I connect my mp3 device on Gnome2 since move to udisks:2, in /var/log/messages I see following errors:

May 22 10:46:27 belkin4 udisksd[2799]: Error opening /etc/crypttab file: Failed to open file '/etc/crypttab': No such file or directory (g-file-error-quark, 4)
May 22 10:46:27 belkin4 udisksd[2799]: Error opening /etc/crypttab file: Failed to open file '/etc/crypttab': No such file or directory (g-file-error-quark, 4)
May 22 10:46:41 belkin4 polkitd(authority=local): Operator of unix-session:/org/freedesktop/ConsoleKit/Session1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount for system-bus-name::1.24 [/usr/libexec/gvfs-udisks2-volume-monitor] (owned by unix-user:pacho)

Then, a root password is demanded but I didn't provide it as looked strange to me to now need root access to get it working.

polkitd output:

# /usr/libexec/polkitd
Entering main event loop
Connected to the system bus
Registering null backend at priority -10
Using authority class PolkitBackendLocalAuthority
Acquired the name org.freedesktop.PolicyKit1
Comment 1 Pacho Ramos 2012-05-22 02:42:53 UTC
Created attachment 61945 [details]
udisksctl_dump
Comment 2 David Zeuthen (not reading bugmail) 2012-05-22 06:47:54 UTC
Don't see how this is a udisks bug, we're checking for org.freedesktop.udisks2.filesystem-mount as we should and since [1] shows auth_admin I guess your polkit installation is just busted - my guess is that half your OS is using systemd for session tracking and the other half is using ConsoleKit. Or something like that.

Either way, closing as NOTOUTBUG since this is demonstrably not an udisks problem.

For the next steps, I would suggest debugging your polkit issues with your distro package maintainer (it's more likely a distro integration problem than an upstream problem)... after this, if you still have a problem with polkit, feel free to reopen this bug and reassign to polkit (I'm also the polkit maintainer).

Hope this helps.


[1] : $ pkaction --action-id org.freedesktop.udisks2.filesystem-mount --verbose
org.freedesktop.udisks2.filesystem-mount:
  description:       Mount a filesystem
  message:           Authentication is required to mount the filesystem
  vendor:            The udisks Project
  vendor_url:        http://udisks.freedesktop.org/
  icon:              drive-removable-media
  implicit any:      auth_admin
  implicit inactive: auth_admin
  implicit active:   yes

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.