LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-26-2006, 12:30 AM   #1
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Rep: Reputation: 15
Encrypt a samba server?


I have a samba server and I would love to encrypt the shares using a rather strong encryption method on a file or filesystem level. tcp/ip isnt necessary.

Is this possible? What are the performance hits? The clients are of course windows xp boxes.

Thanks.
 
Old 09-26-2006, 05:42 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure but one may be able to do samba over a ssh session or setup a vpn between the two machines.

Brian1
 
Old 09-26-2006, 06:30 PM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
How do you want the encryption to work? have the files or directories encrypted and decrypted only when accessed. Or decrypted when the machine boots up etc..... If you want to encypted partitons or complete drives you may want too look at AES-loop encryption. Or if you just want to envrypted files or directories Gnupg maybe what you are after.

Last edited by fotoguy; 09-26-2006 at 06:31 PM.
 
Old 09-26-2006, 06:36 PM   #4
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
I would prefer to have all my files encrypted by default, and only decrypted when accessed if thats possible with samba.
 
Old 10-03-2006, 01:20 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You could use Samba to share a directory. The directory can contain a file that has an encrypted file system. The client would connect to the Samba share and then mount the container file through crypto-loop. This way the information is encrypted over the network and is decrypted at the client. I wrote instructions for the encrypted container file here:
http://www.linuxquestions.org/questi...33#post2416433
The main problem with this as it is described is that the password is also the encryption key seed. People who can access the encrypted file system have to know the encryption key seed and you cannot change the encryption key seed. I have heard about LUKS, which stands for Linux Unified Key System. This system allows up to twelve keys/passwords for users. These keys/passwords have nothing to do with the encryption key. You can add and subtract authorized users at will. I have not yet implemented this so I don't have details.

Last edited by stress_junkie; 10-03-2006 at 01:26 PM.
 
  


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
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
VoIP: Is it possible to run your own server, encrypt, etc. conn-fused Linux - Software 1 04-17-2006 09:06 PM
encrypt error hudo *BSD 0 01-02-2005 11:13 AM
Encrypt vivekind Linux - General 1 01-16-2002 03:23 PM

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

All times are GMT -5. The time now is 06:38 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