Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

On Ubuntu 12.04, how can I access encrypted private home directory? I forgot my root password at some point and my root home folder is locked. I am now using another account in root group so can I get access to encrypted home directory from this account?

share|improve this question
Were you using your login password as the encryption password? (That's how Ubuntu does things by default.) If so, you'll have to remember the password. – Gilles Jan 11 '14 at 23:26
it is all default thing i mean i haven't encrypted by my self! – Meh Jan 11 '14 at 23:36
If you have a user with sudo permissions, you can login to root with sudo -i and then run passwd to change the password... – Wilf Jan 12 '14 at 1:29
If you could access an encrypted directory without specifying the password, there wouldn't be much point in encrypting the directory. – cjm Jan 12 '14 at 3:51

Unfortunately for you, ecryptfs, the encryption system that Ubuntu uses for home directories, is not broken. So the only way to decrypt files is to know the password.

share|improve this answer
... or, if the password was insecure enough, to brute-force it. It'll greatly help if OP remembers part of the password. – derobert Jan 12 '14 at 3:28

I have no idea if this will help you but you might have some luck trying the steps outlined in the recovery sections of the Ubuntu official documentation, titled: EncryptedPrivateDirectory.

Also there is this tutorial, titled: How to Recover an Encrypted Home Directory on Ubuntu.

share|improve this answer

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.