Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just reinstalled Ubuntu, Natty. I set to use encrypted home, but once the system was running, I was asked to define the encrypted home passphrase. Out of haste, I skipped that, but now I want to define the passphrase but I couldn't find out how (despite how trivial this sounds).

I set my /home to a specific partition, so I may reinstall Ubuntu without losing my data whenever I need it, and I guess this is the passphare that I'd need to supply to recover my data on a new install, am I right?

Please, how can I define/change my passphrase?

share|improve this question
up vote 6 down vote accepted

You can do that by running this command at terminal:

ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase 

The information you missed when you skiped was:

enter image description here

share|improve this answer
Thanks! Now, am I supposed to just write this down somewhere? Can't I change this passphrase to something easy to remember? Should I do that, if possible? – mdrg May 21 '11 at 20:05
You can change the passphrase with this ecryptfs-rewrap-passphrase but I would advice you to keep a strong and difficult to remember passphrase. Just write it down to a secure note. – desgua May 21 '11 at 20:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.