I installed Ubuntu on my system and I chose to encrypt my home directory after the install, with the following command:
ecryptfs-migrate-home -u mylogin
It worked a couple of times perfectly : I entered my password on the login screen and my home directory was decrypted automatically.
I now have a problem: my home directory is locked after about one minute and it contains only two files:
$ ll lrwxrwxrwx 1 mylogin mylogin 56 sept. 24 15:26 Access-Your-Private-Data.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop* lrwxrwxrwx 1 mylogin mylogin 52 sept. 24 15:26 README.txt -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.txt
Here is the content of the files:
[Desktop Entry] _Name=Access Your Private Data _GenericName=Access Your Private Data Exec=/usr/bin/ecryptfs-mount-private Terminal=true Type=Application Categories=System;Security; X-Ubuntu-Gettext-Domain=ecryptfs-utils
THIS DIRECTORY HAS BEEN UNMOUNTED TO PROTECT YOUR DATA. From the graphical desktop, click on: "Access Your Private Data" or From the command line, run: ecryptfs-mount-private
I don't understand why the directory has been unmounted to protect my data while I logged in one minute ago.
Once I execute
Access-Your-Private-Data.desktop and I enter my password, I can see my files again. But it makes me enter my password twice and it breaks many programs: Firefox can't launch, Gnome Shell lost some icons, Dropbox reports that it's installing again, etc.
What cause this? How can this be fixed?
I didn't find any solution anywhere. I don't use SSH to connect to my computer.
I use Ubuntu 16.04.3 with an updated kernel.