luks img crypttab mounts as read only.
Okay I'm trying to create a luks img to mount onto my /tmp directory so that my tmp directory is encrypted but for some reason it always mounts as read only.
The /etc/crypttab entry I have is tmp /root/tmp.img
and the fstab entry I have is /dev/mapper/tmp /tmp ext4 defaults 1 2
When I run cryptsetup luksOpen /root/tmp.img tmp and then mount -a it mounts in the manner I want. I added that to my rc.local script and it works but its less than ideal IMO. Any suggestions on how I could get this working via crypttab?
|