LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-16-2005, 04:57 PM   #1
funaroma
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
encrypting directories of data


I have a linux server that allows SSH login from other "remote" servers. Those servers then rsync certain directories to this server for a level of data backup.

SSH is setup using private key encryption (i believe that's the right term, but I *AM* a noob!!), so that the communication itself is secure.

However, I'd also like to somehow encrypt the directories and files on this server, so that if someone did somehow manage to gain access, the files wouldn't be of any use without a decryption method of some kind.

Is something like this even possible? The (re)encryption of the local files would have to happen after each rsync job, which are scheduled on each remote server for every one or three hours. (In other words, the other machines call this one and store their data here... this machine is not specifically aware of when those logins will take place).

Am I asking for something a little too weird here?
 
Old 02-16-2005, 05:09 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Perfectly reasonable, but unless this data is *really* sensitive, you should probably attack this another way.

If you encrypt the data on your server and you have other servers rsyncing the data, why would anyone root the server where the data's encrypted? I'd hit the ones with the plain text copies

Security is about mitigating risk, and in this case, you're not doing that. Server A holds the data you're asking about encrypting. Server B is the rsync client. If you have server B behind a firewall with no services running on it and stored in a secure vault with no keyboard port, then I guess server A is your weakest point and encryption is in order (after IP/MAC limits and an audit of proper filesystem ACLs). I'd probably use GPG/PGP, but then your weakest point becomes the keys (which, assuming you'll be automatically encrypting/decrypting the data, will have to live on the server with the data). You can see how it's basically a problem with no easy solution ...

Last edited by sigsegv; 02-16-2005 at 05:10 PM.
 
Old 02-17-2005, 12:28 AM   #3
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Rep: Reputation: 15
The better solution would be to encrypt the data at both ends. If one end is less secure, then maybe that data shouldn't be there, or maybe having the data live is not a good idea. You could have it in a less usable format, like bz2 or tar, and then move it.

I know you can password protect a zip file with the -e option. That might be an idea.

SElinux would be another way, just write rules that lock that filesystem on the insecure client. Then no one, even with root can get to the data. (Assuming root is not the security adminstrator).
 
Old 02-17-2005, 06:11 AM   #4
funaroma
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Original Poster
Rep: Reputation: 15
A little more detail then:

Encrypting the data at the source is not really an option, as it's is live, in-use data, on Windows machines.

We were attempting to mitigate risk by adding an extra level of encryption where we can, on the backup server where the data from the Windows machines is stored. The Windows machines are already protected well... to HIPAA regulation standards in many cases. We just wanted to try and add this extra layer of encryption on the backup server as an additional precaution. If it's not possible, then it's not possible. We already restrict access to the backup server by allowing only specific IPs to connect; we just thought it might be "nice" to encrypt the data after it's sitting here, too.

But, the more I think about it, the less I feel this is necessary OR possible, as we'll then have to deal with rsync not being able to do a proper sync without decrypting the data to do the comparison, before each update.

Thanks everyone for the replies, you are all so very helpful... you're the best!

m
 
Old 02-17-2005, 06:45 PM   #5
thorn168
Member
 
Registered: Oct 2004
Location: USA
Distribution: Vector Linux 5.1 Std., Vector Linux 5.8 Std., Win2k, XP, OS X (10.4 & 10.5)
Posts: 344

Rep: Reputation: 42
I think you should implement SELinux rules instead of Encrypting the data.

To learn more about SELinux go to: http://www.nsa.gov/selinux/

Thorn
 
  


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
Encrypting harddrive Ephracis Linux - Security 9 07-31-2005 11:55 PM
Encrypting filesystem ImpactDNI Linux - Security 3 03-26-2005 11:53 AM
encrypting emails WannaLearnLinux Linux - Security 6 07-12-2004 02:57 AM
Encrypting Question Bd22 Linux - Security 1 07-11-2003 10:26 PM
encrypting im1crazyassmofo Linux - General 1 04-20-2003 10:15 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration