I have tried getting my home directory encrypted, following these two articles:
http://www.linux-mag.com/cache/7568/1.html
https://wiki.ubuntu.com/EncryptedHomeFolder
None of them worked for me. I would end up with a .Private dir with all encrypted, but I could not make it mount on the home dir. I'm not a Linux expert by any means, but I have been using Ubuntu for a few years now, so I know my way around. Then I clued in that you can create a new user with an encrypted home directory from the very beginning (this works only from 9.10). So I thought that I could:
- Rename my user
- Create a new user with an encrypted home dir
- move everything from the old user to the new one
- delete the old one
Well, it worked. I'm sure the 'oficial' ways are much better in a million ways, but if they did not work for you, try this:
- Logout from the graphic interface
- Login with Alt+Ctl+F1 to get a terminal with the minimum open files.
- Create a new admin user:
sudo adduser --ingroup admin deleteme
- Exit, log back in with 'deleteme'
- Get the old home out of the way:
sudo mv /home/user /home/olduser
- Rename the old user
sudo usermod --home /home/olduser --login olduser user
- Create the new encrypted user
sudo adduser --home /home/user --ingroup admin --encrypt-home user
- Exit, then login with the new user and copy all the files
sudo rsync -a /home/olduser /home/user
- Make these files your own
cd /home
sudo chown -R user user
- Logout, then login with the user, make sure everything works. After a couple of days without a problems, clean up:
sudo deluser --remove-all-files deleteme
sudo deluser --remove-all-files olduser
I hope it helps
Emiliano Conde
Lead Developer
jBilling.com - Open Source Billing
Bookmarks