Linux Lite Forums

Full Version: [solved] Add new users - no option to encrypt home directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
Have just installed LL 4.2 - and I'm starting to add new users. I wish those users to have an encrypted home dir (both users is actually myself and I run backup from time to time).

The issue I face is that the Lite User Manager doesn't have an option for "encrypt home directory" for adding new users. Also, I cannot find anywhere in the man pages for useradd and adduser command, how to set encryption for the users home folder.
I had Linux Lite 3.6 installed on this computer before, and I recall that it had the ability to make the users home dirs encrypted when adding new users.

[edit]
Found this aged article for Ubuntu from 2012 - hope that still works
https://www.howtogeek.com/116032/how-to-...ng-ubuntu/

[edit 2]
Ok - that didn't work. After creating the user "geir", the command did not succeded:
Code:
gjest  ~  sudo ecryptfs-migrate-home -u geir [sudo] password for gjest: INFO:  Checking disk space, this may take a few moments.  Please be patient. INFO:  Checking for open files in /home/geir lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs       Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs       Output information may be incomplete. INFO:  The following files are in use: lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs       Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs       Output information may be incomplete.     COMMAND    PID USER  FD  TYPE DEVICE SIZE/OFF    NODE NAME     dbus-daem 18434 geir  cwd    DIR  0,49      672 1318892 /home/geir     xfconfd  18526 geir  cwd    DIR  0,49      672 1318892 /home/geir     gpg-agent 18530 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfsd    18554 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfsd-fus 18560 geir  cwd    DIR  0,49      672 1318892 /home/geir     applet.py 18567 geir  cwd    DIR  0,49      672 1318892 /home/geir     applet.py 18567 geir    2w  REG  0,49    11303 1322397 /home/geir/.xsession-errors     gvfs-udis 18575 geir  cwd    DIR  0,49      672 1318892 /home/geir     dconf-ser 18582 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfs-gpho 18597 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfs-afc- 18611 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfs-mtp- 18621 geir  cwd    DIR  0,49      672 1318892 /home/geir     at-spi-bu 18622 geir  cwd    DIR  0,49      672 1318892 /home/geir     dbus-daem 18632 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfs-goa- 18635 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfsd-net 18646 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfsd-dns 18698 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfsd-tra 18735 geir  cwd    DIR  0,49      672 1318892 /home/geir     gvfsd-com 18741 geir  cwd    DIR  0,49      672 1318892 /home/geir ERROR:  Cannot proceed.

not Ok, is important for me that I have the ability to make user profiles with encrypted home folder. Is this a distro dependent feature after all ?
UPDATE
Have being fiddling around try to figure out what's wrong.
First I believed that I forgot the command "sudo apt-get install ecryptfs-utils cryptsetup", but it turns out it ship with the OS so there must be something else.
Then - just of a sudden - I figured out I'd try to delete the directory /home/.ecrptfs because since I didn't format the /home partition during install, that directory was a leftover from the LL 3.6 installation.
After I did that - I followed the instructions in the link, and I got it to work  ;D