Removing Encryption from Home Directories in Ubuntu 9.10

March 5th, 2010

I recently assembled a new workstation for home and in the process did a clean install of Ubuntu 9.10 on the system.  Though I have been working with Ubuntu’s very handy ecryptfs setup for encrypted home directories, I had limited such to laptops and had never done so on a desktop system before.  I figured I would give it a try and see what happened.

Performance tests done by others had always shown that there was a slight degradation of speed on ecryptfs encrypted filesystems, which I had fully expected, but I ran into something I hadn’t dealt with on my laptop: directory trees with hundreds of thousands of files.

The difference in speed of accessing individual files a few at a time in ecryptfs was never really noticeable, but I had never tried to stat a tree of 600,000+ files before.  It was as if my brand new system was an artifact from the ’70’s.  It dropped to its knees and cried.

Not believing how slow it was, I tested the issue by copying the directory tree to an unencrypted filesystem on the same physical hard drive and the same task (running ‘tree’ on the directory structure) took only a few seconds, instead of minutes.  It was apparent that any task which had to do a lot of file stat processing, simply dragged to a crawl under ecyptfs.

I was left with the dilemma of how to deal with changing my entire home directory under the ecryptfs system – complete with Ubuntu’s handy automatic mounting – to a standard, unencrypted form.  A bit of searching on the Web lead to dozens of approaches, some as drastic as copying the files to an unencrypted filesystem and removing the ecryptfs software.  That seemed ludicrous to me.  There should be no reason to disable an entire feature globally, to deal with one directory.

I finally came across some handy information on a blog, which gave me a clue as to how the automatic mounting worked in Ubuntu 9.04.  Although not exactly the same as the Ubuntu 9.10 implementation, it was more than enough to give me a very simple way to not only remove the encryption from my home directory, but to allow the system to work for me in creating an encrypted directory to use within my home directory, which took advantage of the slick auto-mount setup the Ubuntu developers had designed.

So, should anyone stumble on this issue, I’ll detail the steps taken here on how to alter Ubuntu 9.10 to switch a full home directory encryption to a normal home directory with an auto-mounting encrypted sub-directory.  The process is amazingly simple.  All text in red are actual commands to type. Green text is a file or directory path. “username” is a token for the name of your account.

  • Logoff the system.  No occurrences of your user account should be active.
  • Login as root or a different sudo enabled account.
  • Make sure that your account’s home directory is not mounted, using the ‘df‘ command.  If it is still in place, use umount /home/username to un-mount the encrypted filesystem.
  • Change the line “/home/username” to “/home/username/Private” in the /home/.ecryptfs/username/.ecryptfs/Private.mnt file using your favorite text editor.
  • mkdir /home/username/Private
  • chown username.username Private
  • Reboot the computer. (You can try restarting the cryptdisks init scripts, but I didn’t have any luck with it.)

When you login now, your previous home directory will be mounted at /home/username/Private instead of at /home/username.  Login the first time using a console rather than X11 (Ctrl-Alt-[F1-F6] from the login screen should be available) and move what files you want from ~/Private to your home directory and use the ~/Private encrypted directory for your sensitive documents.  Moving your dotfiles and hidden sub-directories back into /home/username is a good idea, unless you feel like re-configuring Gnome or KDE.

From this point on, Ubuntu will continue to automatically mount and dismount your ~/Private directory, just as it did for your entire home directory before.

The Road to Dictatorship

March 3rd, 2010

No introduction needed, just read this article by Justin Raimondo, and follow the many links within.

Global Warming Scandals Growing

February 18th, 2010

The Anthropogenic Global Warming Church (AGWC) has been hit pretty hard as of late.  In short, the old “consensus” is falling apart.

The first major hit is the so-called “Climategate”, where emails from various scientists pushing the global warming agenda were leaked to the public.  Hardest hit is Prof. Phil Jones at the University of East Anglia, who had to step down as directory of the Climatic Research Unit after the leaked emails showed that scientists were manipulating data to bolster their claims.  He now admits that the data supporting the famous “hockey stick” graph is missing, warming periods have happened before without human influence and even that there has been no warming since 1995.  Prof. Jones also refused Freedom of Information requests and now claims to have lost the data.

Shortly after this, the UN’s Intergovernmental Panel on Climate Change (IPCC) has been caught up in a row, showing that many of their claims were based on false information from environment groups instead of published academic research.  Claims that the Himalayan glaciers are melting by AGW came from unfounded speculation from a popular magazine.  Another IPCC claim about the destruction of rain forests by AGW is now recognized by the London Times as, “an unsubstantiated claim by green campaigners who had little scientific expertise”, “authored by two green activists” from the World Wildlife Fund.  The IPCC reports of reductions in mountain ice in the Andes, Alps and in Africa were taken from a dissertation by a Swiss student, who was quoting unsubstantiated rumors from mountain climbers.  IPCC claims of coral reef destruction by AGW came solely from advocacy articles from Greenpeace, with no peer-reviewed studies to support the claims.  The IPCC claim of Africa’s major agricultural loss came from a Canadian think tank, with no study to support it.  The IPCC claimed that the Netherlands was endangered, due to its 55 percent of land mass below sea level – when the truth is about 20 percent is below sea level. The IPCC has also been caught up by hard data showing that their claims of increased tropical storms is false.

In the US, scientists from Space Studies in Geophysics and Oceanography now state that Alaskan glacier loss was overestimated by 40 percent for a 40 year period. This data has been used for computer climate models.

Worse yet, Joseph D’Aleo and Anthony Watts, both well established meteorologists, have discovered that starting in 1990, the National Oceanic and Atmospheric Administration (NOAA) and the U.S. National Climate Data Center purposely eliminated temperature measuring stations in rural, cooler locations – artificially pumping up the results.  This is not just a handful of stations either, the count went from 6,000 to less than 1,500.  The study also shows that jumps in global temperature from the NOAA coincide with cuts in weather stations used.  You can find a whole site devoted to surface stations problems.

Furthermore, the remaining stations used were compromised by local artificial conditions, such as being placed next to air conditioner exhausts, other heat exchangers and even trash burning barrels.

Russian scientists have discovered that readings from the coldest regions of the country had been omitted from the IPCC data.  Tree ring data, which indicated cooling since 1961, was truncated as well.

It’s not as if the common bloke couldn’t figure out something is wrong.  Europe and North America have been hit this winter with horrible cold and snowy weather.  So bad, the record cold weather is killing Florida’s coral reefs.

The American press, as usual, is so far out of step with reality that most of this news hasn’t been covered at all.

For those in the US who are trying to keep track of this all, I have found a handy, short guide.

As these scandals continue, I’m certain that the last remaining arguments from the AGWC will fall to the wayside and the environmental globalists will find a new boogyman to scare us all into the next scheme for global governance.  For if you examine the goals of the environmental movement, no matter what the crisis claimed, the solution is always the same: increased government control and taxation and destruction of capitalism.


Addendum: 2010/02/18

The spiral continues with a recent FOIA release of documents from NASA, showing blatant advocacy instead of scientific analysis.

Police State

February 10th, 2010

Some articles need no comment.  This is one of themSo is this.

Good News for a Change on the Taser Debate

January 11th, 2010

Finally a bit of good news on the horizon, which may slow the abuse of Tasers by law enforcement.  The Ninth Circut Court has ruled that police officers can be held liable for harm caused by the inappropriate use of Tasers.

Honey, I Shutdown the Airport

January 11th, 2010

Take a moment and read the article on Reuters concerning the shutdown of a California airport.  I’ll give you the highlights here:

A thirty one year old gardener is inspected after the TSA bomb sniffing equipment gives an alarm over his bag.  Found inside are five Gatorade bottles containing an amber colored liquid. The equipment finds positive for TNT and TATP. Two out of five of the TSA officers inspecting the containers, are overcome from what they called “chemical odors” when examining the material and are rushed to the hospital after becoming severely nauseous. The entire airport is shutdown for the rest of the day.  County Sheriffs, the fire department and FBI agents, as well as members of a “joint terrorism task force” arrive on the scene and question the gardener for the remainder of the day.  He is described as being “very cooperative” with their investigation.

Tests come back with the finding that the five bottles contain honey.

You read that right.  Honey.  You know, the food made by bees.

I realize that most of the TSA is manned by idiots so dim witted that they can’t walk and chew gum at the same time, but the level of bat-shit idiocy needed to convince yourself that you’re somehow overcome by the “chemical odor” emanating from a bottle of honey is so staggering, that you have to wonder if there are more than two or three neurons in their head altogether – and they’re devoted to panic!

Honey?

America wants these drooling morons operating full body scanners that may cause damage to your DNA? Even if they don’t cause harm when operated properly, do you trust these imbeciles to operate the machines correctly?

Seriously, folks – when are you going to say no to this intrusive, ineffective, mind-numbing nonsense?  When are you going to finally have your fill of security theater?

How much of your liberty and common sense are you willing to sacrifice for a little perceived safety?