Comment 0 for bug 1328689

Revision history for this message
Thiago Martins (martinx) wrote : ecryptfs-utils does not work with Ubuntu 14.04 Cloud Image

Guys,

The package ecryptfs-utils works with Ubuntu 12.04.4 (http://uec-images.ubuntu.com/releases/12.04/release/ubuntu-12.04-server-cloudimg-i386-disk1.img) but it does not work with Ubuntu 14.04 (http://uec-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloudimg-i386-disk1.img).

The following procedure works:

1- Start a Instance using Ubuntu 12.04.4;

2- Run: "apt-get install ecryptfs-utils";

3- Run: "adduser --encrypt-home cofre1" - WORKS OKAY!

The following procedure does not works:

1- Start a Instance using Ubuntu 14.04;

2- Run: "apt-get install ecryptfs-utils";

3- Run: "adduser --encrypt-home cofre1" - ERROR!

Error messages (Ubuntu 14.04 - Trusty):

Console:
---
root@cofre-1:~# adduser --encrypt-home cofre1
Adding user `cofre1' ...
Adding new group `cofre1' (1001) ...
Adding new user `cofre1' (1001) with group `cofre1' ...
Creating home directory `/home/cofre1' ...
Setting up encryption ...

************************************************************************
YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION.
  ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
************************************************************************

Done configuring.

mount: No such file or directory
ERROR: Could not mount
adduser: `/usr/bin/ecryptfs-setup-private -b -u cofre1' returned error code 1. Exiting.
---

Kernel:
---
Jun 10 20:56:39 cofre-1 kernel: [ 227.431623] Could not find key with description: [f62693e62d5cd7c1]
Jun 10 20:56:39 cofre-1 kernel: [ 227.435401] process_request_key_err: No key
Jun 10 20:56:39 cofre-1 kernel: [ 227.435405] Could not find valid key in user session keyring for sig specified in mount option: [f62693e62d5cd7c1]
Jun 10 20:56:39 cofre-1 kernel: [ 227.441263] One or more global auth toks could not properly register; rc = [-2]
Jun 10 20:56:39 cofre-1 kernel: [ 227.441413] Error parsing options; rc = [-2]
---

As I said, with Ubuntu 12.04.4 it works like a charm... What am I missing with Ubuntu 14.04 ???

Regards,
Thiago