Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I recently installed Debian Wheezy with XFce4. Whenever I try to unmount a USB, I get this error message:

GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided

How can I fix this?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

This might be part of the same family of issues that cause one not to be able to mount USB drives and other kinds of external media in Debian (and other distros) without administration privileges when PolicyKit is involved.

Though I don't have the complete information at hand, I seem to remember the culprit is the default permissions for udisks (which XFCE uses to handle automounting).

You can partially (or perhaps fully) solve this by

  • making sure you have all PolicyKit relevant packages installed, as well as the CK connector.
  • Adding a file called udisks.pkla to the /etc/polkit-1/localauthority/50-local.d/ directory with the following contents:

    [udisks]
    Identity=unix-user:*
    Action=org.freedesktop.udisks*
    ResultAny=yes
    

(Might merit a X restart or full system reboot)

I got this from somewhere in the Arch forums. Credits go to them.

EDIT - similar issues have been posted here, with similar solutions: Impossible to mount USB stick

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.