LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-08-2019, 10:36 AM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: CentOS, Debian & Fedora
Posts: 708

Rep: Reputation: 53
Question Encrypt Home Folder after install - Debian 10


Hello Everyone,

I recently installed Debian 10 on my Lenovo laptop. I have Windows 10 installed as primary OS and Debian as secondary on the same hard drive.

With Debian 9 I was able to encrypt my home folder after install by using 'ecryptfs'; however, Debian 10 has dropped this application.

Is there a way to encrypt my home folder after install by using a different application? I searched the net for a bit and most if not all links point me to ecryptfs.

Please advise

Thank you!
 
Old 08-08-2019, 10:44 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,302
Blog Entries: 13

Rep: Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696Reputation: 3696
I don't see why you can't install encryptfs to your current version of the distro. Have you tried to install it?
 
Old 08-08-2019, 10:50 AM   #3
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: CentOS, Debian & Fedora
Posts: 708

Original Poster
Rep: Reputation: 53
yes and the error message below comes up:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ecryptfs-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ecryptfs-utils' has no installation candidate
 
Old 08-08-2019, 12:27 PM   #4
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 208Reputation: 208Reputation: 208
How about cryptsetup?
 
Old 08-08-2019, 12:38 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,217

Rep: Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962
Quote:
Originally Posted by ceantuco View Post
yes and the error message below comes up:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ecryptfs-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ecryptfs-utils' has no installation candidate
Have you read about WHY you can't do this??? Was removed from 10 because of an unfixed security flaw:
https://bugs.debian.org/cgi-bin/bugr...cgi?bug=765854
https://tracker.debian.org/pkg/ecryptfs-utils
 
Old 08-08-2019, 01:07 PM   #6
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: CentOS, Debian & Fedora
Posts: 708

Original Poster
Rep: Reputation: 53
yes, I have read "WHY" it was removed and this is "WHY" i am asking for an alternative solution.

Quote:
Originally Posted by TB0ne View Post
Have you read about WHY you can't do this??? Was removed from 10 because of an unfixed security flaw:
https://bugs.debian.org/cgi-bin/bugr...cgi?bug=765854
https://tracker.debian.org/pkg/ecryptfs-utils
 
Old 08-08-2019, 01:11 PM   #7
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: CentOS, Debian & Fedora
Posts: 708

Original Poster
Rep: Reputation: 53
Wink

Quote:
Originally Posted by zeebra View Post
How about cryptsetup?
thank you zeebra. I googled 'cryptsetup' as you suggested and found the link below. i will give it a try on a vm first:

https://feeding.cloud.geek.nz/posts/...rectory-using/
 
Old 08-08-2019, 02:30 PM   #8
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: CentOS, Debian & Fedora
Posts: 708

Original Poster
Rep: Reputation: 53
I tried the steps above and I was able to successfully encrypt my home folder; however, I noticed an impact on performance.
Thank you all!
 
Old 08-08-2019, 02:46 PM   #9
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by ceantuco View Post
I tried the steps above and I was able to successfully encrypt my home folder; however, I noticed an impact on performance.
Thank you all!
How so? What do you mean performance impact?
 
Old 08-08-2019, 02:51 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,217

Rep: Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962
Quote:
Originally Posted by ceantuco View Post
yes, I have read "WHY" it was removed and this is "WHY" i am asking for an alternative solution.
If you read it, why did you try to install it, and seem confused as to why you couldn't???

And yes, going the method you used is going to slow things down, but it shouldn't be much...if you did it on a VM, it will introduce even more overhead, and make it seem worse.
 
Old 08-08-2019, 03:00 PM   #11
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: CentOS, Debian & Fedora
Posts: 708

Original Poster
Rep: Reputation: 53
Unhappy

TB0ne: wrong order...

1)tried to install but it failed
2)researched error
3)found reason WHY
4)researched for alternative solution but didn't find any
4)came to LQ and I asked "Is there a way to encrypt my home folder after install by using a different application?

yes, I just tried it on my laptop. It lags quite a bit. I will re-install and leave unencrypted for now.. I don't have critical files on my laptop anyways.

Quote:
Originally Posted by TB0ne View Post
If you read it, why did you try to install it, and seem confused as to why you couldn't???

And yes, going the method you used is going to slow things down, but it shouldn't be much...if you did it on a VM, it will introduce even more overhead, and make it seem worse.
 
Old 08-08-2019, 03:19 PM   #12
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 208Reputation: 208Reputation: 208
Depending on the disk and hardware, it should not have a significant impact to encrypt your home partition. I encrypt my home partition, and I've never noticed any performance impact. But that's on generally well performing hardware.. Not super hardware or expensive stuff, just generally well performing.

I guess as someone said, on a virtual machine there could be more impact.

https://www.phoronix.com/scan.php?pa...-encrypt&num=1

According to phoronix tests ecryptfs is significantly slower than LUKS (cryptsetup).

Last edited by zeebra; 08-08-2019 at 03:24 PM.
 
Old 08-08-2019, 03:25 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,217

Rep: Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962
Quote:
Originally Posted by ceantuco View Post
TB0ne: wrong order...

1)tried to install but it failed
2)researched error
3)found reason WHY
...which you didn't say anything about; we can't know what you did/tried/read/researched, unless you tell us. And again, if you knew the application was dropped, it seems odd that you'd then try to install it, knowing it would fail.
Quote:
4)researched for alternative solution but didn't find any
4)came to LQ and I asked "Is there a way to encrypt my home folder after install by using a different application?
You said "I searched the net for a bit and most if not all links point me to ecryptfs" (bold added for emphasis only). "Most" would indicate that you found others, especially since putting "how to encrypt home partition on debian 10" into Google pulls up the link you followed as the third hit.
Quote:
yes, I just tried it on my laptop. It lags quite a bit. I will re-install and leave unencrypted for now.. I don't have critical files on my laptop anyways.
Glad you got it sorted out. Good luck.
 
  


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
Encrypt home folder after OS install rjo98 Linux - Newbie 4 03-01-2017 08:30 AM
LXer: How to Encrypt Ubuntu Home Folder After Installation LXer Syndicated Linux News 0 09-04-2012 05:20 PM
LXer: Encrypt Early, Encrypt Often! LXer Syndicated Linux News 0 08-10-2011 03:30 AM
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 10:35 AM
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 10:16 AM

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

All times are GMT -5. The time now is 11:48 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