Creating a new user after install with encrypted home

Solution 1:

It is a bug of 12.04, see here.

You can workaround creating the user from terminal. The command is:
adduser --encrypt-home username (change "username" for the user name you want).

Solution 2:

This seems to be fixed at the command line level.

sudo adduser --encrypt-home username 

(Change "username" for the user name you want.)

Just worked for me in an up to date 12.04 Precise Pangolin ie.it created a new user with an encrypted home directory.


If you receive an error message :

adduser: unable to find a program named « ecryptfs-setup-private » in $PATH"...

Adding the package « ecryptfs-utils » solves this problem (thanks, apt-file...) :

apt-get install ecryptfs-utils