and changed the password for the user ubuntu to a different one. When ubuntu logged in again their home directory was not mounted.
The user could work around this by manually mounting their home directory with ecryptfs-mount-private and change their ecryptfs passphrase to their new password using ecryptfs-wrap-passphrase.
I then did the following:
sudo -i
passwd ubuntu
and changed the password for the user ubuntu to a different one. When ubuntu logged in again their home directory was not mounted.
The user could work around this by manually mounting their home directory with ecryptfs- mount-private and change their ecryptfs passphrase to their new password using ecryptfs- wrap-passphrase .