LinuxQuestions.org
Visit Jeremy's Blog.
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, 12:53 PM   #1
spiri13
Member
 
Registered: Jun 2016
Posts: 45

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, 01:20 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,832

Rep: Reputation: 259Reputation: 259Reputation: 259
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, 01:29 PM   #3
spiri13
Member
 
Registered: Jun 2016
Posts: 45

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


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 07:13 PM
Home Folder Encryption with ecryptfs imayneed Linux - Software 3 09-24-2012 06:05 PM
[ECRYPTFS] ecryptfs_init_miscdev: Error whilst attempting to open [/dev/ecryptfs] nitinarora Linux - Kernel 0 03-22-2010 06:36 AM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 11:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 05:02 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration