← Back to team overview

ecryptfs-devel team mailing list archive

Re: [Ecryptfs-users] Writing a script for encrypting an user's home

 

On Tue, Jan 05, 2010 at 11:46:16PM +0800, Dustin Kirkland wrote:
> All of the instructions and commands should be clearly described here:
>  * http://blog.dustinkirkland.com/2009/06/migrating-to-encrypted-home-directory.html

Won't it be much simpler if we just do the migration in this way,
using ecryptfs-setup-private's bootstrap mode (as root):

# mv /home/$USER /home/$USER.old
# mkdir -p -m 700 /home/$USER
# ecryptfs-setup-private -b -u $USER
# rsync -a /home/$USER.old/ /home/$USER/
# rm -rf /home/$USER.old/ (if needed)

I have tried and they worked.

-- 
Best regards,
Li, Yan

Moblin Team, Opensource Technology Center, SSG, Intel
Office tel.: +86-10-82171695 (inet: 8-758-1695)
OpenPGP key: 5C6C31EF
IRC: yanli on network irc.freenode.net



Follow ups

References