Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

udiskie

udiskie is a simple daemon that uses udisks to automatically mount removable storage devices.

Maintainer Wanted

I'm not longer using udiskie on my systems. The code still works, but it's been neglected for a while.

Permissions

udiskie requires permission for the org.freedesktop.udisks.filesystem-mount as well as the org.freedesktop.udisks.luks-unlock action. This is usually granted in sessions launched with ConsoleKit support. If run outside a desktop manager with ConsoleKit support, the permission can be granted using PolicyKit by creating a file called 10-udiskie.pkla in /etc/polkit-1/localauthority/50-local.d with these contents:

[udiskie]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount
ResultAny=yes

This configuration allows all members of the storage group to run udiskie.

Alternatively, to allow these actions to be executed for inactive sessions, modify the file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy. Make sure to change the setting for allow_inactive to 'yes':

<action id="org.freedesktop.udisks.filesystem-mount">
  <description>Mount a device</description>
  <message>Authentication is required to mount the device</message>
  <defaults>
    <allow_any>yes</allow_any>
    <allow_inactive>yes</allow_inactive>
    <allow_active>yes</allow_active>
  </defaults>
</action>

...

<action id="org.freedesktop.udisks.luks-unlock">
  <description>Unlock an encrypted device</description>
  <message>Authentication is required to unlock an encrypted device</message>
  <defaults>
    <allow_any>no</allow_any>
    <allow_inactive>yes</allow_inactive>
    <allow_active>yes</allow_active>
  </defaults>
</action>

Recent activity

Thomas Gläßle

Thomas Gläßle pushed 3 commits to coldfix/udiskie

9bfdb91 - Merge branch 'udisks-dependency-injection' into separate-mvc-components
2da3db7 - Remove hardcoding udiskie.udisks module as a dependency
0483d4c - Rename udiskie.device to udiskie.udisks
Thomas Gläßle

Thomas Gläßle pushed 20 commits to coldfix/udiskie

f47a3f6 - Merge branch 'general-mount-utility' into separate-mvc-components
f926702 - Relocate udiskie.umount.* to udiskie.mount.*
7796d92 - Move Mounter.* methods to udiskie.mount.* module level functions
1ba5013 - Load filters calling controlling code
7b3f90b - Merge branch 'separate-cli' into separate-mvc-components
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.