LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Why can a Samba connection not write to an encrypted partition? (https://www.linuxquestions.org/questions/linux-security-4/why-can-a-samba-connection-not-write-to-an-encrypted-partition-4175506764/)

taylorkh 06-02-2014 09:11 AM

Why can a Samba connection not write to an encrypted partition?
 
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

linosaurusroot 06-02-2014 10:21 AM

Is this a typo? There is 1 "n" in "only".

Quote:

read onnly = no

taylorkh 06-02-2014 10:33 AM

Nno typo - I just like the letter N :redface:

Thannks linosaurusroot :D

Ken


All times are GMT -5. The time now is 12:42 AM.