LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-02-2014, 09:11 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
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
 
Old 06-02-2014, 10:21 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Is this a typo? There is 1 "n" in "only".

Quote:
read onnly = no
 
1 members found this post helpful.
Old 06-02-2014, 10:33 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Nno typo - I just like the letter N

Thannks linosaurusroot

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypted /root, /home, and swap mount at boot as does LV shared but no write access? dusf Linux - Newbie 0 04-27-2014 02:45 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 03:44 AM
Cannot write to LUKS encrypted hard drive Nemesissparadise Linux - Software 3 04-04-2011 04:02 PM
[SOLVED] Can't write to encrypted Windows partition (truecrypt) piratesmack Slackware 2 01-12-2010 09:30 PM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration