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!

Discuss this post - Leave a comment

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.

System Message: WARNING/2 (<string>, line 1); backlink

Inline emphasis start-string without end-string.

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

Omar Zabaneh

July 25, 2008
Zeth, Thank you for this post, very helpful. I used it as a basis for my own email validation function that i wish to share with you, in a selfish ...
Email Syntax Check in Python

Double Booting Bastard

July 24, 2008
I agree with Nui, Linux is great for many things but not everything. A lot of, less mainstream, hardware is a time consuming and often fruitless task to install and ...
Give Linux a chance

John

July 23, 2008
Duncan, sadly the permissions are stored with the data (inode), not with the directory entries (hard-links). Zeth needs ACLs -- no way to do this with basic unix permissions.
Advanced Unix Groups

Garrick

July 21, 2008
I do love my iPhone. That being said, I would trade it in a heartbeat for a STABLE Openmoko FreeRunner.
This week - iPhone vs a can of compressed air, and Django NewFormsAdmin

Daniel Davies

July 21, 2008
With regards to your last paragraph, you are certainly correct. Right now Django is a nightmare to use across multiple sites... we have some sites running the newformsadmin branch, others ...
This week - iPhone vs a can of compressed air, and Django NewFormsAdmin

Nui

July 18, 2008
Hmm, this would be more persuasive as an argument with some evidence. I am a happy admin of Windows and a novice user of Linux, so I have taken the ...
Give Linux a chance

Paddy3118

July 18, 2008
Hi, I too work with Electronic Design Automation tools, where Tcl is used extensively. I tend to only occasionally have to write in Tcl and so find the TclTutor utility: ...
Python and TCL

Cliff Wells

July 17, 2008
I personally cannot live without the Web Developer extension or Firebug. Unfortunately these are probably both among the more difficult to port extensions. Given how poorly Firefox functions on Linux ...
Will Epiphany be able to compete with Firefox's extensions?

Åke Forslund

July 13, 2008
I'm pretty much a novice in both of these languages but I find them both easy to use and preform the tasks I give them. However I rarely use them ...
Python and TCL

Christopher Thoday

July 12, 2008
A single test is not sufficient to give you confidence that the algorithm is working. You should make 'number' an argument of 'main' so that you can test some boundary ...
Python and TCL

paul21

July 10, 2008
Shame on Mozilla. They should make developers specify the extension license before hosting it. They should show the license next to download button as well.
Are your Firefox extensions proprietary software?

Tris

July 8, 2008
Justin - You say they had not heard of Linux? That doesn't sound very professional to me!
Give Linux a chance

michael

July 8, 2008
what about Galeon? in Gnome i use Galeon mostly. it is fast and stable and has a nice portal with search masks for Debian, FSF, Freshmeat and so on. wtf ...
Will Epiphany be able to compete with Firefox's extensions?

vermin

July 7, 2008
> Eventually, after a bit of digging and Googling, I found their Toolbar-License... You simply found the license of the StumbleUpon Toolbar for Internet Explorer. This is another product, much ...
Are your Firefox extensions proprietary software?

Andrew West

July 6, 2008
Both the Python and the Tcl example could do with error checking. While at first this may not seem on topic with the post I think it better shows the ...
Python and TCL