LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2013, 06:25 AM   #1
dragonfly-uk
Member
 
Registered: Feb 2013
Posts: 36

Rep: Reputation: Disabled
Encrypting a Remote Samba Filesystem


I have access to a remote samba filesystem that is good for backup storage etc. However I don't entirely trust the operator\security. So I'd like to encrypt what I put onto the samba drive. I tried mounting the samba drive, then remounting it with EncryFS fut that fails, so can anybody recommend a way of mounting the filesystem in Debian so that I can see it as a normal filesystem, but the remote on only see encrypted data.

As a side not I planning using rsync to copy data to the drive once it is encrypted.
 
Old 02-28-2013, 08:12 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,145

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
You can create an ecryptFS file system on top of a local filesystem, it just doesn't work with NFS or samba. Evidently it needs low level access to the filesystem.

Last edited by smallpond; 03-02-2013 at 04:38 PM. Reason: was just wrong
 
Old 03-01-2013, 03:05 AM   #3
dragonfly-uk
Member
 
Registered: Feb 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
So can anybody suggest an alternative??

Are there any nasty implications if I was to keep an encrypted mirror on the local machine, then rsync that to the samba drive? One I can think of is it could be near impossible to find the file I want if I need a single file.
 
Old 03-01-2013, 07:34 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
You'd need access to encrypt the target for most common encryption. If you can't manage the target then you have to create a mounted file system on share. Then mount the image. It should be the same as making an encrypted loop filesystem locally.

It should be pretty trivial to make a local image backup protected by some scheme then move it. The only issue may be how the scheme used parameters to encrypt. You wouldn't want to use a scheme that needed local key that could be lost in a crash.

I suppose it may be possible to use something like truecrypt.

Last edited by jefro; 03-01-2013 at 08:03 PM.
 
Old 03-02-2013, 02:17 AM   #5
dragonfly-uk
Member
 
Registered: Feb 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
I'll look into TrueCrpyt.

I was thinking mount a local partion using encryptfs then rsunc onto that. Come to that why not just keep the entire drive encrypted. Then rsync the base filesystem to the remote drive. If it comes to keeping a local keep, I could keep a copy a at a different remote location, such as an attachment to an email to myself. Or even on a USB Key.
 
  


Reply



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
mounting samba filesystem on remote machine as /home on local machine shishirkotkar Linux - Software 1 04-28-2008 05:05 AM
What is Remote Filesystem ? paragkalra Linux - Newbie 1 09-16-2007 10:42 PM
Encrypting an existing filesystem? Canadakid Linux - Security 6 01-10-2007 05:27 AM
Encrypting filesystem ImpactDNI Linux - Security 3 03-26-2005 10:53 AM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:31 PM.

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