how to set owner and permission to a cryptsetup made device?

Posted by Antoine Rodriguez on Ask Ubuntu See other posts from Ask Ubuntu or by Antoine Rodriguez
Published on 2012-09-23T10:25:56Z Indexed on 2012/09/29 15:52 UTC
Read the original article Hit count: 434

Filed under:
|
|

I have an encrypted loopback volume. I need to mount and umount manually the volume so I use cryptsetup luksOpen and cryptsetup luksClose .

However, When I invoke this command it pops up the /dev/mapper device under all the sessions under gnome/xfce/kde/unity ...

And then it let the user to mount (with password), expulse and unmount the volume.

It's quite annoying in a multi user server (you are working on your files and the volume is being unmounted).

How can I define ownership and permission on the device ?

  • I've tried chown and chmod approach witch gives nothing.
  • Cryptsetup doesn't have any options that let you do that.
  • crypttab auto mount the filesystem on boot witch is unwanted (only manual mount)

© Ask Ubuntu or respective owner

Related posts about filesystem

Related posts about encryption