I have an encrypted loopback volume. I need to mount
and umount
the volume manually, so I use cryptsetup luksOpen
and cryptsetup luksClose
.
However, under all sessions (gnome/xfce/kde/unity), when I invoke this command it pops up the /dev/mapper device ...
And then it lets the one user mount (with password), access files, 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). I want the volume to be owned and used by only root and the owner and not all users.
How can I define ownership and permission on the device ?
More informations :
- I've tried
chown
andchmod
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)
The permissions that cryptsetup put in the /dev/mapper/MyEncryptedVolume
is owner root:root
but with lrwxrwxrwx
whatever I do (like a chmod) won't do anything.
It's a device (/dev/mapper/MyEncryptedVolume
) that is linked to /dev/dm-0
with rights brw-rw----
I've changed the rights of /dev/dm-0
with udev
rule but nothing change : the volume is still shown to normal users due to the symbolic link.
Thank you
witch
withwhich
so that online language translators can work properly. While editing, theThank you
should be removed as well.