LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ecryptfs home directory (https://www.linuxquestions.org/questions/linux-newbie-8/ecryptfs-home-directory-4175593661/)

spiri13 11-16-2016 11:53 AM

ecryptfs home directory
 
Hello,

How do I encrypt my home directory?

I followed the guide from arch wiki and I came up with the following:

Code:

# logout user
# login root
# ecryptfs-migrate-home -u user
# login user
# ecryptfs-mount-private

At the last command I get the error message indicating the directory is not setup properly.

It's a bootable usb stick.

I want to protect my home directory with a passphrase and it should be an easy way to do so.

Is this possible?

AwesomeMachine 11-16-2016 12:20 PM

You can't encrypt it after it has files on it. You have to put the files somewhere else, setup the encrypted drive and put the files back.

spiri13 11-16-2016 12:29 PM

Hello,

arch wiki says

Quote:

Originally Posted by https://wiki.archlinux.org/index.php/ECryptfs#Encrypting_a_home_directory
The wrapper script ecryptfs-migrate-home will set up an encrypted home directory for a user and take care of migrating any existing files they have in their not yet encrypted home directory.

And all I have to do is

Code:

modprobe ecryptfs
ecryptfs-migrate-home -u user
(login to the user)
(sudo) ecryptfs-mount-private

Why is this not working?
Am I missing something?


All times are GMT -5. The time now is 09:12 PM.