Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-16-2016, 11:53 AM   #1
Registered: Jun 2016
Posts: 57

Rep: Reputation: Disabled
ecryptfs home directory


How do I encrypt my home directory?

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

# 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?
Old 11-16-2016, 12:20 PM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
Old 11-16-2016, 12:29 PM   #3
Registered: Jun 2016
Posts: 57

Original Poster
Rep: Reputation: Disabled

arch wiki says

Originally Posted by
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

modprobe ecryptfs
ecryptfs-migrate-home -u user
(login to the user)
(sudo) ecryptfs-mount-private
Why is this not working?
Am I missing something?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to automount secondary disk inside ecryptfs home directory? coralfang Linux - Software 1 06-19-2014 06:13 PM
Home Folder Encryption with ecryptfs imayneed Linux - Software 3 09-24-2012 05:05 PM
[ECRYPTFS] ecryptfs_init_miscdev: Error whilst attempting to open [/dev/ecryptfs] nitinarora Linux - Kernel 0 03-22-2010 05:36 AM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 10:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration