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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-27-2017, 09:49 PM
|
#1
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Rep:
|
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
|
|
|
02-27-2017, 10:57 PM
|
#2
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
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.
|
02-27-2017, 11:18 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,317
|
Do it as root - or single user.
|
|
1 members found this post helpful.
|
02-28-2017, 07:53 AM
|
#4
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
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.
|
03-01-2017, 08:30 AM
|
#5
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
Thanks, i ended up doing it in single user mode. I agree, definitely easier to do it during install.
|
|
|
All times are GMT -5. The time now is 05:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|