Public bug reported:

After being badly bitten by bug #344878, I decided to remove filename
encryption from my home directory.  I backed up the whole home directory
then rm -rf'ed both /home/$USER and /home/.ecryptfs.

I then made a copy of the ecryptfs-migrate-home script and changed the
line:

ECRYPTFS_SETUP_PRIVATE_ARGS=""

to

ECRYPTFS_SETUP_PRIVATE_ARGS=" -n "

in order to have it create the encrypted home directory without filename
encryption.  I did this because simply using ecryptfs-setup-private did
not work (possible further bugs, manpage lists -a option that doesn't
seem to exist).

Anyway.  The new encrypted home directory seemed OK, auto[un]mounting on
login/logout.

I then proceeded to rsync back the old contents, taking care to
--exclude=.ecryptfs and --exclude=.Private.

The rsync finished without problems.  But now I have a new problem:

- reboot the machine.
- log in (console).  encrypted $HOME automounts.
- log out.
- log in.  encrypted $HOME fails to mount:  I get the dreaded "keyctl_search: 
Required key not available" message.

Needless to say, the combined experience is dreadful for a supposedly
LTS version.  Is there any way I can restore some sanity to this
encrypted home directory, or is it time to throw in the towel?

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ecryptfs-utils 83-0ubuntu3.1
ProcVersionSignature: Ubuntu 2.6.32-32.62-generic 2.6.32.38+drm33.16
Uname: Linux 2.6.32-32-generic x86_64
Architecture: amd64
Date: Tue Jul  5 01:48:25 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 
(20100419.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: ecryptfs-utils

** Affects: ecryptfs-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug lucid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/805849

Title:
  after ecryptfs-migrate-home, encrypted home will only mount on first
  login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/805849/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to