Ubuntu – Changing home folder encryption after changing user password

encryption

When I installed Ubuntu 15.04 I chose to encrypt the home folder.

Now I have changed the user password and I can still access the home folder. Does this mean that the home folder encryption key has also been changed or could someone access my home folder if they know my old password?

Best Answer

It depends ...

When you change your login password with the command line, it updates you login password without updating the ecryptfs password. This is to prevent other users (well root really) from accessing your encrypted data by changing your password. If you change the password with this method, your old password can be used to decrypt the data.

When you change your login password with the graphical tools, it updates both your login password and the ecryptfs password. With this your data will be decrypted automatically when you log in and can not be accessed with the old password.

See http://bodhizazen.com/Tutorials/Ecryptfs#Password for additional information.

Related Question