Changing login/mount passphrases?

Asked by Rizlaw

I have two questions regarding pass phrases in the new encrypted .private folder:

1. If you decide to change the user login pass phrase used to initially create the "private" folder to something more secure, will such a change prevent you from accessing the data in the "private" folder on the next log on? As I understand it, the user's log on pass phrase is used to decrypt the mount passphrase to gain access to the data. If the user's log on password changes, it would seem that the mount passphrase might no longer be decrypted - hence the data, in the private folder, unrecoverable.

2. Conversely, is there a way to change the mount pass phrase without losing any encrypted data?

Question information

English Edit question
Ubuntu ecryptfs-utils Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Rizlaw (rizlaw) said :

Answer from Ubuntu Wiki:

Q. "What will happen when a user changes his login password (via GUI or passwd command)? Are we still able to decrypt the key needed for mounting ~/Private? If so... how? (steven3000)"

A. "See section 7 Implementation of this page where it says, "The module handles rewrapping of mount passphrases on password change." See also ecryptfs-rewrap-passphrase-- DustinKirkland"

Revision history for this message
gaax (gaax) said :

We can imagine that scenario:
My laptop was stolen.

1. Robber crack a root password
2. Change password for my default user (chpasswd)
3. login in to new password on my default user

The question is: They have access to secure data in private folder? I think answser is: Yes.
So, my secure data will be decrypted.

Revision history for this message
Jakob Unterwurzacher (jakobunt) said :

You absolutely need the correct wrapping password to change it. Changing the login password by force will NOT open up the encrypted directory.