LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-13-2005, 06:39 PM   #1
Gunrunner
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Rep: Reputation: 0
Harddrive encryption and FTP


I was thinking on setting up a FTP server
and have the partition (not the system) holding all files
to be encrypted using crypt-setup or the like.

Now, I was only wondering if this is a good idea?
why I want to do this is because, we have already had a break in.
where computers/Servers where stolen.

I am woundering on the preformance if it
gonna be VERY noticed ( on the fly encryption ), or just a "small" degree
in performance.
 
Old 07-13-2005, 11:03 PM   #2
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
I would imagine that once the file is decrypted and read it'll be kept in the page cache decrypted, so the performance shouldn't be terrible. But I would expect a noticable hit if you're doing a lot of I/O on that disk.

Also, I've never used the dm-crypt stuff so I could be completely wrong about the decrypted in memory thing too. Your best bet is to just grab a box (or VMWare session) and try it out. It'll give you a chance to get more comfortable with the software too since it can be really easy to lose data once you encrypt it.
 
Old 07-14-2005, 05:39 PM   #3
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
I might be wrong, but isn't the partition decrypted when you mount it?

And you would need to keep it mounted so that you can serve files with your FTP. So you wouldn't gain much from encrypting it. At least that was was how losetup worked. Although I never tried to access it with another user.

You can however encrypt the files that you are serving and only authorized people have the key to decrypt it.
 
Old 07-14-2005, 07:33 PM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
I might be wrong, but isn't the partition decrypted when you mount it?
You are wrong. The data is decrypted as it is read, and encrypted as it is written. The on-disk data is always encrypted. (I don't think the cache is encrypted, but since no program or thief can access it, it is not a problem.)
Quote:
You can however encrypt the files that you are serving and only authorized people have the key to decrypt it.
This is another option, though it achieves different goals.
 
Old 07-15-2005, 01:05 AM   #5
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
You can always use encrypted loopback devices and test performance...
For FTP, it could be similar to SSH's scp and sftp, I don't know.

Making encrypted backups of these partitions has never been been easier... You could also encrypt /var/log

Quote:
You can however encrypt the files that you are serving and only authorized people have the key to decrypt it.
There are many flaws with this setup:
1- You must trust all these users.
2- You must trust the computers they're connecting from.
3- If you change a password, you must notify these users.
4- Serving encrypted files over a plain-text protocol is dangerous because users may type the file's password at the login prompt. (Not to mention that their account passwords on your system may be sniffed as well, making your cryptography setup useless).


You must find the best option anyway, because it all depends on too much factors: the data being encrypted, etc...
 
Old 07-15-2005, 06:08 AM   #6
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
For FTP, it could be similar to SSH's scp and sftp,
I think it will be better.

Quote:
You can however encrypt the files that you are serving and only authorized people have the key to decrypt it.
Quote:
There are many flaws with this setup:
I agree, but I would say that it is slightly more secure, especially if you use sftp or ftps, instead of ftp. However, this setup is NOT the same as the one you want, and it has a different purpose.
 
  


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
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM
Encryption KingInk Linux - Security 1 03-29-2002 10:34 PM
ftp telnet and encryption 98steve600 Linux - General 3 01-08-2001 06:24 PM

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

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