I just faced a problem with encrypted home directory in Ubuntu Server 10.04.
While I know a workaround, I want to just to completely remove encryption from everything.
Any hints how to do that without complete backup & reinstall?
This guide is pretty major surgery, only follow it if you are confident at the command line - a few mistakes could lead to losing all your data.
You will have to copy all the files from your home directory somewhere else, and then copy them back once you have turned off the encryption, but you don't have to reinstall. So let's say you have an external drive at
Then you need to unmount the ecryptfs mount, delete all the encrypted files, stop the automounting and copy all your files back. This is going to cause havoc if you are logged in with a GUI, so I would either log out, and log in on one of the consoles (press Ctrl-Alt-F1 to access one) or I would boot off a live CD/USB stick to do this. Either way be very sure your back ups are safe.
If you are using a live CD you will need to mount your disk, and the paths in the following commands will change accordingly.
So, unmount the ecryptfs mount. (If you are working off a live CD you don't need to do this step).
Next make room on the disk by deleting all the old encrypted files. Be sure your back ups are safe before you do this. And if you have over half your disk spare, you can leave this step until once you are sure the new version is working. But if you have only a bit of your disk spare then you will need to do this before copying the files back.
Next we need to stop the auto-mounting. So edit the files
and comment out the line that mentions
Now you can copy all your files back
Then do a reboot and you should be without the encrypted folders, and able to enable auto-login. If you didn't delete
the problem your facing is that the filesystem is encrypted. When you decrypt the area of disk, you're not doing one file at a time. - So its not going to be possible to just "turn off" encryption without backing up files and restoring.
While reading about I came up with another strategy that might work for you, depending on what your issue is. If the issue is that you (as root) need to access users files while they are not logged in, then you could stop the encrypted files being unmounted on logout.
ecryptfs uses files in
Then the users' directories will not be unmounted on logout and will remain accessible. However the on disk format will still be encrypted, so you don't have to worry about old disks falling into the wrong hands (provided you securely delete