In case you want forgot to encrypt your home folder while installing Linux Mint or Ubuntu, it’s very easy to do that afterwards, and I’ll KISS, i.e. Keep It Simple & Stupid 🙂
- login normally at the login screen, let’s say the user you want to encrypt its home folder is called “hobba”
- Create a new administrative user, let’s call it “olla” for instance
- Now logout from “hobba” and login as “olla”
- Make sure the /home partition (if any) has enough free space, as ecryptfs takes a backup copy of all your files
- Run this command “sudo ecryptfs-migrate-home -u hobba”
- Preferably just enter the same login password you currently use for the user “hobba”. If not, you’ll have to change your user’s login password again.
- Wait till the command finishes execution
- You will see this information displayed, it is VERY IMPORTANT to follow point number 1, you can execute the others if you wish:
========================================================================
Some Important Notes!
1. The file encryption appears to have completed successfully, however,
test MUST LOGIN IMMEDIATELY, _BEFORE_THE_NEXT_REBOOT_,
TO COMPLETE THE MIGRATION!!!
2. If test can log in and read and write their files, then the migration is complete,
and you should remove /home/user.7y3X0vjM.
Otherwise, restore /home/user.7y3X0vjM back to /home/test.
3. user should also run ‘ecryptfs-unwrap-passphrase’ and record
their randomly generated mount passphrase as soon as possible.
4. To ensure the integrity of all encrypted data on this system, you
should also encrypted swap space with ‘ecryptfs-setup-swap’.
======================================================================== - You’re done!
- Enjoy 🙂
Source: http://bodhizazen.net/Tutorials/Ecryptfs/#Home
Reblogged this on SutoCom Solutions.
LikeLike
Reblogged this on oogenhand.
LikeLike