This Week: Encrypt /home campaign updates

23 December 2007

So a couple of weeks ago, I challenged all you warriors, well at least those of you using Linux on your laptops, to encrypt your /home directory by Christmas.

Document Freedom Day

Doing everything up to and before the 25th December is of course the modern way of celebrating Christmas. In older times, it was the other way up, the 25th December was just the first day of Christmas, Epiphany (January 6th) was the big climatic celebration (where people swapped presents, wore crowns and got drunk), so it is still a great time to start protecting your home directory ;)

Some of you are fellow ramblers and have discussed the campaign in your blogs, thanks for that. Here is a quick run through of the posts that I can currenly spot in my RSS Reader. There are probably a few more out there, so if I have I missed your blog, apologies, please let the world know about it by leaving a comment.

  • Andrew Perry mentions that you can also set a master password in Firefox to protect your saved passwords, rather than the default which is to let anyone who has access to the browser to view and use the saved passwords.
  • Mike rewrites the instructions according to what he did, a great idea. He argues that on Gentoo cryptsetup is the ebuild you want, apparently cryptsetup-luks is old hat as the main cryptsetup ebuild contains LUKS now.
  • Menelkir sails into another minor problem, if you use the Ubuntu graphical boot splash then you can't see when it asks for the password, d'oh! His solution is to turn off the splash screen, this is a good idea anyway as you can see what your system is up to more generally.

Another approach for those who want to keep the splashiness would be to change the init scripts so that it doesn't try to mount /home so early, and then make it ask for the password when you are at the login manger. There is a script for this called gcryptmount, and a Gentoo wiki page about how to use it. It shouldn't be too hard to fiddle with a few paths so it works on Ubuntu.

  • Albert doesn't appear to be a believer yet. He argues that he never lets his laptop leave his person. However, I would point out that I do not either, but you only have to lose it once.

As regulars readers will know, I had my Gentoo-running Macbook stolen from my digs while I was at work. Even worse, I once heard of a person having their laptop stolen at knife-point by some crackhead.

Perhaps these are extreme examples but it so easy to setup encryption on Linux that I think everyone should do it anyway. I have been using the encrypted /home for a month and I cannot notice any performance impact at all.

After all, compared to Windows or OS X, the Linux desktop does not actually use much in the way of system resources in general. I have about 20 programs open, and about about 40 browser tabs, and it is only using half of my laptop's RAM and the processor runs between 5% and 30%. Even in the unlikely event that I do something extremely intensive that maxes the laptop out, there will be lots of other bottlenecks that will need to be solved before the speed of writing or reading from /home becomes an issue.

  • As Justin points out (put on your best Marlon Brando Godfather voice), "Do it or you may regret it later". So don't say we didn't tell you!

Lastly, to all you Warriors out there, have a very Merry Christmas and a Happy New Year!

1 Christer Edwards says...

The approach I have been using since Ubuntu 7.10 came out was the encrypted- everything option at installation. The installer (alternate, not LiveCD) supports full file system encryption at install time & prompts you for the passphrase during the usplash.

Everything but /boot is encrypted. Encrypted /, swap, etc.

Posted at 4:58 p.m. on December 23, 2007


2 Daniel says...

I ended up having to do the same thing Mike came up with above. For whatever reason on a fresh install of Gentoo on my laptop (hard drive was wiped during warranty service) the instructions given for cryptsetup-luks worked for everything but auto-mounting and I needed to use cryptsetup to get it to work. I don't use Ubuntu, but I assume the crypttab configuration is *buntu specific.

Still, I've got my encrypted /home now (encrypting / seems a little overkill as I'm not running any servers on my laptop). Thanks for providing the inspiration to do so!

Posted at 5:19 p.m. on December 23, 2007


3 Zeth says...

@Christer

Yeah the encryption from within the Ubuntu installer is pretty nice. Hopefully, the LiveCD will too.

My suggested approach of encrypting /home was aimed to be an easy first step that people who have already installed systems could take now.

I think in the long run, encrypted filesystems will the default for everyone on Linux, once the graphical tools are updated to make it effortless and in the background.

@Daniel crypttab configuration is *buntu specific.

Quite possibly, I am straddling both the Gentoo and Ubuntu horses at the moment because neither on their own have everything I want right now. My new laptop is currently only Ubuntu because of Bug 173117 (Gentoo won't install from USB) and a lack of time to work around it. Both should be sorted out in a few weeks time I hope.

Posted at 6:54 p.m. on December 23, 2007


What do you have to say?

Show Editing Help

About

Hello, my name is Zeth, I'll be your host here.

Command Line Warriors is about taking control of your own technology, it looks at our experiences of computing; especially using GNU/Linux, the Python programming language, the command-line and issues such as techno-ethics, best practices and whatever is cool now. If you take control of your technology then you are a Warrior too!

This site is your site too which means that you can contribute and get involved. You can leave comments using the facility provided. For me, the comments and discussions are by far the best part of the site. So please do have your say!

Latest Discussions

Cupcake

July 31, 2010
Good post! You helped me a lot with my school project! CountryField(blank = True) < (K)
Countries in Django

LeshaShampoo

July 30, 2010
it was very interesting to read commandline.org.uk I want to quote your post in my blog. It can? And you et an account on Twitter?
Email Syntax Check in Python

vemma2018

July 30, 2010
I find myself coming to your blog more and more often to the point where my visits are almost daily now!
On Comment Spam

layecenda

July 30, 2010
Hello. And Bye.test :) http://idfjhvihdfiphvlajbvhalibv.com
PuTTY Series: Adding PuTTY to your system path

scuba

July 30, 2010
I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.
On Comment Spam

Businesking

July 30, 2010
Great site and articles for hack for win, I said Amazing post
How not to program WSGI

Tehnoking

July 30, 2010
This is Great post to learn about the hack Thumbs-up for you :D
How not to program WSGI

Syabiltech

July 30, 2010
I think this articles for master...because very hard to learning, As blogger beginners like me.
How not to program WSGI

coffeeatea

July 30, 2010
Are you looking for coffee gifts? We can tell you more about the coffee gifts including coffee machines and coffee pods.
Introducing Soturi - yet another Django blog application

noni juice

July 30, 2010
I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.
On Comment Spam

Dion Moult

July 29, 2010
What I do know is that ever since I tried out Opera and put their tab bar on the left as a column, I've loved that layout. Back on Firefox ...
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

ZonaEntertainment

July 29, 2010
Wow useful articles, I'm read to learn about this and now I bookmark this to my Facebook, thanks for share!
How not to program WSGI

Giacomo

July 29, 2010
Honestly, I think both Mozilla and you are wrong :) This sort of concept adds overhead. A user would have to manage all this crap, constantly dragging and dropping, creating ...
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

Matija "hook" Šuklje

July 29, 2010
As a minimalist, you'll probybly moan if I mention KDE, but I'll do so anyway ;) The future I want (and actually see slowly fold out before me) is to ...
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

tahitian noni

July 28, 2010
Thank You For This Blog, was added to my bookmarks.
On Comment Spam

Rick

July 28, 2010
I already have piles. It's called A New Window.
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

Tech News

July 25, 2010
Thanks for this short tutorial...was auto-FTPing my files from my appserver to webserver for my tech news website. Everything was OK until someone hacked it. Hosting provider is now recommending ...
SFTP in Python: Really Simple SSH

naypalm

July 24, 2010
During the past 3-4 years, I and many others have enjoyed unlimited 2G/3G internet. But ever since the massive cult-like following of i Phone users in the US, most cellular ...
Calling time on mobile internet nonsense?

Steve

July 15, 2010
Very occasionally, you will run into a Java program that uses a lot of memory just to hold all the classes used. It turns out that the JVM uses a ...
Three classic command line tips

no

July 14, 2010
1. number one 2. number two 4. number four 3. number three 6. number six # first # second ## second-ay ## second-bee ### second-bee-one ### second-bee-two
An Introduction to ReStructuredText