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 02-16-2009, 06:42 AM   #1
atomictoaster
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
Can an encrypted filesystem be read if...


I was wondering if an encrypted filesystem could be read while it was opened if:

a)s/he has physical access to the box while it's turned on.
b)the attacker does not have a login to the box.
c)the only link it has to the internet is ssh.
d)only root can mount external media sources (usb drives/cd's)

If so, what precautions could I take against this? I need a way to secure files on a server, but have it so some relatively average computers users can access the files contained on it (basically I don't feel like educating them about encryption keys). The only thing I'm worried about is a nosey administrator on campus trying to peak into it, not the NSA or anyone.

Thanks!

EDIT: typo in the title...my bad.

Last edited by atomictoaster; 02-16-2009 at 06:43 AM. Reason: EDIT: typo in the title...my bad.
 
Old 02-16-2009, 07:49 AM   #2
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
An encrypted file system ONLY makes data on a disk inaccessible to people who do not have the encryption software and key when the file system is not mounted. The protection is circumvented when the encrypted file system is mounted.

You should be able to apply that information to the various circumstances listed in your question.

The system administrator can see the data on the encrypted file system only when that file system is mounted.

Other people logged on to the computer can see the information if it is not properly configured via permissions (i.e. chmod 700) and ownership.

Malware can see the data if it is running under an account that can see the data.

Some encryption software keeps the encryption key in RAM as long as the machine is turned on. Some types of file systems will write the unencrypted data to a journal file. The operating system may write unencrypted data to a swap file. The best way to keep others from seeing the data is to turn the machine off when you are not using it.

Comment: I am a little bit concerned when you say that you want to keep the system administrator from seeing the data. Of course there are legitimate reasons for this which is why I answered the question. On the other hand this site has a policy against helping people circumvent the proper use of machines used in education, business, and whatever. Use your knowledge for good and not for evil. :-)

Last edited by stress_junkie; 02-16-2009 at 11:16 AM. Reason: Add swap file to list.
 
Old 02-16-2009, 08:18 AM   #3
atomictoaster
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Oops...well I don't know how nosy the admin is yet, I'd just prefer everything to remain private; if s/he has to access it, I'd like them to ask me directly instead of going behind me.

Thanks for the info though. Looks like I might be persuing a different method. =)

Last edited by atomictoaster; 02-16-2009 at 08:20 AM.
 
Old 02-16-2009, 09:08 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could have an encrypted file mounted with a loop device. This will protect the data when it isn't mounted. A root user will be able to read it when it is however. You will need to have a pass phrase to protect it. You will need root access to mount an encrypted partition or an encrypted file.

I'm guessing that you want to protect private customers' information from administrators on a remote system. You need to encrypt the data itself. You can use crypto functions in mysql for example to protect the users data in a soho environment.

Last edited by jschiwal; 02-16-2009 at 09:10 AM.
 
  


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
Encrypted Filesystems with Slackware 12 AMarkos Slackware 7 10-27-2007 01:33 PM
Encrypted Filesystems on Etch Michael_aust Debian 3 08-20-2006 07:09 PM
encrypted filesystems Niteskye Fedora 2 05-18-2006 03:20 PM
Encrypted Filesystems on Removable Media Soltis Linux - Security 8 03-21-2005 01:35 PM
Encrypted filesystems and util-linux thebell Linux - General 2 05-31-2004 10:16 AM

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

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