Sign up ×
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.

In modern DEs, like KDE or XFCE, you can mount a LUKS device after entering the password.

Now I want to do this without the file manager, with two steps,

  1. Decrypt the device
  2. Mount the disk with udisks command

For the first step, there should be a dbus interface involved, any ideas? Or correct me on how the file managers do that without root permission ...

(P.S I'm not asking for a sudo solution, although I could do that, but I prefer a dbus solution)

share|improve this question
With udisks see - jftr you can play around with dbus via qdbus – Ulrich Dangel Mar 30 '13 at 9:24
udisks als has support for this. udisksctl unlock -b /dev/sda – t-8ch Mar 30 '13 at 9:36
@t-8ch ah cool, I only read about udisks, not udisksctl – warl0ck Mar 30 '13 at 9:38
udisksctl is from udisks2 – t-8ch Mar 30 '13 at 9:39
@t-8ch ah that works, what about the command for "luksClose"? – warl0ck Mar 31 '13 at 1:30

Your Answer


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

Browse other questions tagged or ask your own question.