If you are using Ubuntu 12.04 LTS or later, you can disable home folder encryption by following these steps:
- Open a terminal and type the following command: sudo apt-get remove –purge home-folder-encryption sudo apt-get install –no-install-recommends home-folder-encryption
Ubuntu offers to encrypt your home directory during installation. The encryption has some drawbacks – there’s a performance penalty and recovering your files is more difficult. If you change your mind later, you can remove the encryption without reinstalling Ubuntu.
The process of removing the encryption involves creating a backup copy of your home directory without encryption, deleting the existing home directory, removing the encryption utilities, and moving the unencrypted copy back into place.
Back Up Your Home Directory
Your home directory is available to you in unencrypted form while you’re logged in, so you can easily create an unencrypted backup copy.
To create the backup copy, launch a terminal while you’re logged in and run the following command, replacing user with your username:
(The -rp options here tell cp to copy the directory recursively – that is, copy everything inside it – and to preserve the file ownership and permission information.)
Open the /home/user.backup directory on your system and verify that the backup was created successfully. All your files should be there. It’s always a good idea to have an additional backup, too – just in case.
Switch User Accounts
You can’t remove the encryption while you’re logged in, so you’ll have to switch to a different user account first. The simplest way to do this is by creating another user account with administrator (sudo) privileges. To create another user account, click your name on the panel and select User Accounts.
Create a new user account with the Administrator account type.
Set a password for the user account. You won’t be able to log in as the other user account until you set a password.
Log out from the panel after creating the other user account.
Select your temporary user account on the login screen and log in.
Remove Encryption
Once you’re logged in as the other user account, fire up a terminal and run the following command to delete your current, encrypted home directory. Be sure you have a backup before deleting the home directory! And be careful when running sudo rm -rf commands – these can quickly delete important files if you’re not careful.
(Remember to replace user with your username.)
Delete the .ecryptfs folder in your backup folder. The encryption utilities won’t uninstall until you delete this folder.:
Next, remove the encryption utilities from your system:
Finally, restore the unencrypted backup of your home directory to its original location:
Your home directory is now unencrypted. You can log out (or restart your system) and log in normally. You may want to delete the temporary user account from the User Accounts window.