Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Encrypted drive setup at login and locking on logout.
Date: Mon, 06 Jul 2020 04:49:27
Message-Id: c8dd9093-6c00-6f05-4521-2844bb47f8a5@gmail.com
In Reply to: [gentoo-user] Encrypted drive setup at login and locking on logout. by Dale
1 Dale wrote:
2 > Howdy,
3 >
4 > As some know, I been playing with encryption recently.  I got doing it
5 > on the command line and using veracrypt for USB sticks down.  I use
6 > Veracrypt for those that I want to work on windoze as well, I hope
7 > anyway.  Now I'm moving on to something else. 
8 >
9 > Now that I have a spare drive, I want to encrypt it and have a mount
10 > point for it, /home/dale/documents for example.  What I'd like to do,
11 > when I login in, it asks me for the encryption password and then
12 > mounts it.  When I log out, it reverses.  I'm not doing all of /home
13 > because I want to separate some info.  I may do it later. 
14 >
15 > I did some googling but maybe my search terms aren't good enough.  I
16 > mostly find for /home as a whole but not separate parts of it.  When I
17 > add in Gentoo does some things differently, it may be that this isn't
18 > even doable.  Also, my user password and password for the encryption
19 > will be different.  I'm using KDE but anything that will work as part
20 > of KDE or along with KDE will be fine with me. 
21 >
22 > Does anyone have a howto they can link to?  Is this even doable? 
23 >
24 > Thanks.
25 >
26 > Dale
27 >
28 > :-)  :-) 
29
30
31 Digging around I found these. 
32
33 [ebuild  N    ~] sys-fs/ecryptfs-utils-111_p20170609::gentoo  USE="gtk
34 nls pam -doc -gpg -openssl -pkcs11 -python -suid -tpm"
35 PYTHON_SINGLE_TARGET="python2_7" 1,401 KiB
36 [ebuild  N     ] sys-fs/cryptmount-5.3.2::gentoo  USE="gcrypt largefile
37 luks nls openssl udev -argv0switch -cswap -fsck -mount (-selinux)
38 -systemd" 533 KiB
39
40 Looking at the info I've found tho, I don't think it will do what I'm
41 looking for.  Has anyone used either of these in the past?  If so, does
42 one of these do what I'm looking for?
43
44 I'm surprised someone hasn't come up with this before.  Surely I'm not
45 the only one who would like a automatic way to decrypt, mount, umount
46 and encrypt with some sort of automated process.  Sort of like a USB
47 stick only with encryption. 
48
49 Dale
50
51 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Encrypted drive setup at login and locking on logout. William Kenworthy <billk@×××××××××.au>
Re: [gentoo-user] Encrypted drive setup at login and locking on logout. Neil Bothwick <neil@××××××××××.uk>