[dm-crypt] cryptsetup without sudo

Henry Jenkins henry at henryjenkins.name
Tue Feb 25 19:23:59 CET 2014


Perfect! I hadn't noticed the 'udisksctl' command.

Thanks you all for taking your time to reply.

Henry


On Wed, Feb 26, 2014 at 5:05 AM, Thomas Bächler <thomas at archlinux.org>wrote:

> Am 24.02.2014 21:29, schrieb Henry Jenkins:
> > Is there some method using Ubuntu to set up a luks drive without
> > root/sudo access from the cli?
> >
> > Currently I can use either `sudo cryptsetup luksOpen <drive> <name>`
> > then udisks or I can use gnome-disks to which does not requite sudo. So
> > I'm assuming there is a existing application that does not require using
> > sudo or the use of a GUI.
> >
> > Motive - mounting a usb key without requiring elevated privs.
>
> Assuming you have udisks2, this shouldn't be a problem:
>
> $ udisksctl
> Usage:
>   udisksctl [OPTION...] COMMAND
>
> Commands:
>   help            Shows this information
>   info            Shows information about an object
>   dump            Shows information about all objects
>   status          Shows high-level status
>   monitor         Monitor changes to objects
>   mount           Mount a filesystem
>   unmount         Unmount a filesystem
>   unlock          Unlock an encrypted device
>   lock            Lock an encrypted device
>   loop-setup      Set-up a loop device
>   loop-delete     Delete a loop device
>   power-off       Safely power off a drive
>   smart-simulate  Set SMART data for a drive
>
> Use "udisksctl COMMAND --help" to get help on each command.
>
> The 'unlock' command seems useful to you.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20140226/2087d128/attachment-0001.html>


More information about the dm-crypt mailing list