LinuxQuestions.org
Visit Jeremy's Blog.
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 02-27-2017, 08:49 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
Encrypt home folder after OS install


Playing around with Linux Mint, noticed during OS install it gave an option to encrypt the user's home directory. I skipped it, but now want to try it. I'm trying to ecryptfs-migrate-home -u UserName but I keep getting errors about files being open, which makes sense I suppose since i'm logged in as that user.
I only have this one user on my VM, is it not possible to encrypt a home folder while you're logged in? could i just encrypt the whole drive?
Just playing around here, so not worried about data loss, but would rather not have to waste another hour reloading the OS due to user error
 
Old 02-27-2017, 09:57 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I wonder why files are open. :-)

You'll need to create another user with admin privileges and encrypt the original user's home directory logged into the new account.
 
1 members found this post helpful.
Old 02-27-2017, 10:18 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Do it as root - or single user.
 
1 members found this post helpful.
Old 02-28-2017, 06:53 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I tried and successfully installed eight Unixes OSs this week, trying to get LM17 to "accept" and boot a FreeBSD, or TrueOS on sdb.
It did not go well. The partitioning and install went well, but I think grub2 "hates" ZFS and or UFS (FreeBSD and TrueOS native formats).

Any who's after that "party", I had to get back to work by Monday, so I fired up my install of 17.1, used LVM with encryption but decided additionally encrypting /home wasn't necessary as the entire thing is on an Encrypted LVM, the only way it will "go", AFAIK is during install else, it's all manual and I'd rather not mess any more with breaking stuff, so I opted for it during install.

It is the simplest method, IMO. During install.

Just sayin'
 
1 members found this post helpful.
Old 03-01-2017, 07:30 AM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks, i ended up doing it in single user mode. I agree, definitely easier to do it during install.
 
  


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
LXer: How to Encrypt Ubuntu Home Folder After Installation LXer Syndicated Linux News 0 09-04-2012 04:20 PM
encrypt folder ufmale Linux - Newbie 1 09-22-2010 12:16 AM
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
how to lock and encrypt a folder in my home? greythorne SUSE / openSUSE 4 06-26-2005 02:18 PM
Install over Fedora w/out losing home folder? distortedstar SUSE / openSUSE 3 06-08-2005 07:50 AM

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

All times are GMT -5. The time now is 08:03 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
Open Source Consulting | Domain Registration