LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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?
 
Old 11-16-2016, 12:20 PM   #2
AwesomeMachine
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
spiri13
Member
 
Registered: Jun 2016
Posts: 57

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:20 AM.

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