I was exploring the possibility of changing the login password of ecryptfs. In this system (Ubuntu 14.04 LTS) the login password for ecryptfs and that for the Linux user are the same. My ecryptfs-utils is version 104-0ubuntu1.14.04.4.

Admittedly, I always found the terminology password/passphrase used in ecryptfs-related pieces a bit confusing. I took some courage from this post on Ask Ubuntu where 'rewrapping' is suggested. To that end, I did run the command ecryptfs-rewrap-passphrase /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase. There I was presented with the typical sequence of Old wrapping passphrase + New wrapping passphrase + New wrapping passphrase (again).

Whatever the 'wrapping passphrase' may mean, I thought to be playing safe by typing in the login password for all three questions. The thinking was 'Is that wrong? It'll protest. Is that right? It won't change anything'.

I then got the error

Error: Unwrapping passphrase failed [-2]
Info: Check the system log for more information from libecryptfs

and the encryption has disappeared!

For example, launching ecryptfs-unwrap-passphrase gives stat: No such file or directory. Effectively, ~\.ecryptfs and ~\.Private are now dangling symlinks. The target location /home/.ecryptfs/user/.ecryptfs is gone.

I also fear problems upon rebooting because the GUI may be looking for an encrypted directory, a problem that I am raising elsewhere on AskUbuntu, though that is not because of my doing. (Addition: after rebooting and a couple of dialogue windows about system issues to report, I could gain access to the GUI again.)

What are the possibilities to restore encryption (with ecryptfs) in this situation?

  • Don't use ecryptfs. Use proper disk encryption like LUKS. Dec 11, 2016 at 19:30

1 Answer 1


If this happens to you, please include the end of the system log as the error tells you to check.

It sounds like you would have had to use a tool like autopsy to recover the /home/.ecryptfs/user/.ecryptfs/wrapped-passphrase file which contains the encryption key encrypted with your password.

'rewrapping' is the process of decrypting that key and re-encrypting it with a new password. So you should have typed your old one first, and then your new one. When ecryptfs says 'passphrase', they mean 'password', and it is often your login password. It must be no longer than 64 characters.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .