You are not logged in.

#1 2019-01-31 00:44:35

bpeary
Member
Registered: 2012-08-25
Posts: 40

Cannot mount encrypted /home following ecryptfs-migrate-home -u user

I followed the wiki instructions and the encryption proceeded and finished with the instructions to login as user.  Trying to mount /home/user with:

ecryptfs-mount-private,  I get the following lines (abbreviated):

Inserted auth tok with sig [] into user session keyring
   could not find key with description
   could not find valid key in user session keyring...
   error parsing options; rc=[-2]
Mount: no such file or directory

My userid must be correct, because when I issue ecryptfs-unwrap-passphrase it is accepted and I get a 32-character alphanumeric string returned.

Anyone know how to proceed from here?  I can restore from clonezilla and start fresh (but I've done that twice with the same results).

Offline

#2 2019-01-31 10:46:56

bpeary
Member
Registered: 2012-08-25
Posts: 40

Re: Cannot mount encrypted /home following ecryptfs-migrate-home -u user

Apparently a systemd problem.  From https://bugzilla.redhat.com/show_bug.cgi?id=1480793:

"Sebastian Pölsterl 2017-10-09 20:16:36 UTC

The fix from the systemd issue above (https://github.com/systemd/systemd/pull/6342) can be applied manually by manually linking the user and session keyring via
keyctl link @u @s
before running ecryptfs-mount-private"

This is cumbersome, requiring too many steps for login:

userid
password
keyctl link @u @s
ecryptfs-mount-private
password
startx

How can I automate this?  (I've made the changes to /etc/pam.d/system-auth for auto-mount, but I'm still dumped to the console prompt for the workaround.

Last edited by bpeary (2019-01-31 10:47:50)

Offline

Board footer

Powered by FluxBB