I created an encrypted partition on my Ubuntu 12.04 server using cryptsetup and luksFormat. I created a mount point and mount it thusly
Code:
sudo cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
sudo cryptsetup luksOpen /dev/sdb1 sdb1
sudo mkfs.ext3 /dev/mapper/sdb1
sudo mount /dev/mapper/sdb1 /crypt
I have the permissions on /crypt set to 777. All of this seems to work just fine.
The encrypted partition contains old year end backups of financial records and other stuff. The data goes back many years and some is in the format of Windows programs (e.g. FoxPro). I therefore wish to access the data using a Windows virtual machine running in VMWare on my desktop. I added a Samba share to the server thusly
Code:
[zorro]
comment - secret share
read onnly = no
locking = no
path = /crypt
guest ok = no
I have several other share on the server using the same definition scheme and they allow read/write access as expected. However, when I attach to the share which points to the encrypted partition from the Windows VM I find that I have only read permission.
My Linux account "ken" on the server can read and write to the encrypted patition. My Samba account "ken" on the server can read and write to all other shares on the server but not "zorro". Am I missing something or is there a fundamental reason why this should not work?
TIA,
Ken