Step 1 :
sudo apt-get install ecryptfs-utilsStep 2 :
adduser tempuser adminLogout and re-login as tempuser.
Step 3 :
sudo ecryptfs-migrate-home -u samiuxLogout and re-login as samiux. But DO NOT reboot your system.
If you are not asking for the "
Passphrase", you should enter the following command :sudo ecryptfs-add-passphraseStep 4 (Optional) :
You can check the Passphrase at any time by the following command :
sudo ecryptfs-unwrap-passphraseSave the "
Passphrase" somewhere and keep it safe for manual recovery.Step 5 (Optional) :
I suggest you to encrypt the swap too.
sudo ecryptfs-setup-swapStep 6 :
Then, if everything is working fine, you can delete the ramdonized file and delete the tempuser.
sudo rm -rf /home/samiux.*sudo deluser --remove-home tempuserThat's all! See you.
