Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Security
Reload this Page How secure are my files in Linux?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Security Discussion about keeping your machines secure, and the crackers out.

Reply
 
Thread Tools Display Modes
Old 04-24-2008   #1 (permalink)
Just Joined!
 
Join Date: Nov 2006
Posts: 5
How secure are my files in Linux?

Hi,


How secure are my files in Linux? If lets say I want to keep certain documents hidden from others, is there a way to protect them better than what NTFS currently offers?

By saying NTFS I mean that in a Windows based machine, one could always unscrew the hard drive and load it onto another computer as a slave or via USB, take ownership, and download the files. I heard that on Linux you can password protect certain files / directories and if you forget your password, you've lost your data for good.

I'm wondering what I look up to find out more about this. I use Ubuntu myself.

Thanks

DJ
DJRepresent is offline   Reply With Quote
Old 04-25-2008   #2 (permalink)
Trusted Penguin
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 3,532
Encryption is probably what you are looking for. You can encrypt some partitions, directories and files. I've never done this before so can't provide specific details, but maybe a google search may help.
daark.child is offline   Reply With Quote
Old 04-25-2008   #3 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,158
Quote:
Originally Posted by DJRepresent View Post
Hi,


How secure are my files in Linux? If lets say I want to keep certain documents hidden from others, is there a way to protect them better than what NTFS currently offers?
The linux filesystems are more secure in the sense that they provide a proper file permissions system, unlike FAT. NTFS has some permissions scheme, and can use access control lists, but, sincerely, I never bothered with that, so I can't answer your question.

Quote:
By saying NTFS I mean that in a Windows based machine, one could always unscrew the hard drive and load it onto another computer as a slave or via USB, take ownership, and download the files.
There's no need to waste that much effort. Just put a linux livecd on your drive. Since you will be logged a root, you can mount any drive and do whatever you want with it, as long as you have the needed driver to access the filesystem. In this regard, all the OSes are equally vulnerable. That is, unless the contents of the drive is encrypted.

If the volume is encrypted then you need the password to decrypt it. That, or to have the matrix on your side to crack it :P

If booting from cd is disabled, reset the BIOS by ripping out the battery and configure it to boot from CD. If there's no cd, then usb. If not, rip out the drive and use it in another box.

What I want to imply here is that, if there's physical access, and you are not limited by time constrains, you can do whatever you want. It doesn't matter how secure the OS is.

Quote:
I heard that on Linux you can password protect certain files / directories and if you forget your password, you've lost your data for good.
Neither of these affirmations is true *by definition*. Though there are some things to speak about here.

First, you can't protect a folder directly, nor a file. But you can use encryption to encrypt anything. You can do so on files with windows so. You just need to use the correct software.

However, the advantage in linux is that you can encrypt a filesystem. So, if you want to secure your home directory, you can just mount it into another partition or disk and encrypt that disk as a whole, making it transparent, so you don't have to use programs to pack/unpack, encrypt/decrypt stuff.

Second, if you value your info, you don't lose your password. Technically, you can crack almost anything if you have infinite machine power and infinite time. But we can assume than a strong encryption algorithm will mean lost data if you lose the password. Yes.

You should read on filesystem encryption.

A random google result related to ubuntu:
Filesystem Encryption [Archive] - Ubuntu Forums

Note, however, that this is all at cost of some performance penalty, since anything being read or written will need to be encrypted/decrypted, and that takes some cpu cycles and ram.
i92guboj is offline   Reply With Quote
Old 04-26-2008   #4 (permalink)
Just Joined!
 
Join Date: Nov 2006
Location: UK
Posts: 20
There are several ways you can easily get to use encryption with Linux. Think first how best you might use them. A good start is to try out TrueCrypt.
Here is a link for you TrueCrypt - Wikipedia, the free encyclopedia

I use PCLinuxOS, and I found the Synaptic package manager had a ready-made install that went in a a minute or so. For my needs, I encrypted an entire USB volume. You can, instead, make a volume that appears as a scrambled file, and you can include a Windows Truecrypt executable that allows you to stick it into nearly any PC, copy to it just like any normal drive, and carry the data away securely. The volume is mountable by both Linux and Windows PCs.
Truecrypt has the feature that at no stage does any unencrypted stuff ever visit a writeable storage medium. For me, it was a good way to start using encryption while learning, and to keep private financial stuff private while being able to carry it about, and not be concerned if it was lost/stolen/forgotten.

You can use any of several methods to encrypt a partition, making it appear as a normal drive until you dismount it. You can make an encrypted /home and swap partition, either during distro install or afterward. Debian installs offer it as an option from the beginning. It does not make sense to encrypt the Linux system and application files. They are public anyway, subject to frequent updates and changes, and would cause some unnecessary performance slowdown.

Then - there is using GPG to encrypt files you may wish to send to others, or to simply mail them to yourself in web-based email like Google's gmail as a means of securelyarchiving data you never want to lose.

Finally - use a firewall like GuardDog. Linux distros normally come with a default configured firewall. If you have a local network, you can arrange that all communication is scrambled, and exchanges only take place via strict authentication handshaking protocols. You can make a Linux system as tightly buttoned up as you desire. Google for information on hardened distros, and selinux. You can learn a lot by reading about how to set up a network and server, from articles available on this site.
Gtrax is offline   Reply With Quote
Old 04-27-2008   #5 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,158
Quote:
Originally Posted by Gtrax View Post
Finally - use a firewall like GuardDog.
Just a note: guarddog is not a firewall. It's a frontend. The firewall is iptables: the only firewall avaiable for linux, as far as I know.
i92guboj is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 02:47 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0