Just trying to set up a secondary user after install on 12.04. My last system was 10.04 and it allowed me to create a new user with an encrypted home partition but when creating a new user on 12.04 there is no option to encrypt home partition. Do I need to install another package or am I missing something?
Asked
Active
Viewed 2.8k times
3 Answers
10
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

fossfreedom
- 172,746

user67597
- 101
-
if accessing the user using
su
, make sure to runecryptfs-mount-private
– Aryeh Beitz Oct 31 '17 at 05:53
2
You just need another user & group admin tool:
sudo apt-get install gnome-system-tools
Then go to dash and search for Users and Groups. Add a new user and check "Encrypt home folder to protect sensitive data". Remember to take extra precautions if you don't want sensitive data to leak into the log files (eg. /var/log/), temp files (eg. /tmp), the swap space, etc.
useradd
oradduser
? Both commands exist, butadduser
is the one you want. (Also you'll need to run it asroot
withsudo
, i.e.,sudo adduser --encrypt-home username
.) – Eliah Kagan Jun 01 '12 at 05:42