1. Boot from Lubuntu 18.04 (bionic) daily-live (from 2018-05-04).
2. Create user with the same uid as was used by previous home user ($user).
3. Logout & sign in as $user.
4. Mount *partition* with previous home (to $mnt).
5. Install ecryptfs utils:
```bash
$ sudo apt install ecryptfs-utils
```
6. Mount previous home:
```bash
$ sudo ecryptfs-recover-private "$mnt"/home/.ecryptfs/"$user"/.Private/
INFO: Found [$mnt/home/.ecryptfs/$user/.Private/].
Try to recover this directory? [Y/n]:
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n]
INFO: Enter your LOGIN passphrase...
Passphrase:
Inserted auth tok with sig [$ecryptfs_sig] into the user session keyring
mount: /tmp/ecryptfs.$XXXXXXXX: mount(2) system call failed: No such file or directory.
ERROR: Failed to mount private data at [/tmp/ecryptfs.$XXXXXXXX].
```
```bash
$ ls -ld /tmp/ecryptfs.$XXXXXXXX
drwx------ 2 root root 40 May 5 17:04 /tmp/ecryptfs.$XXXXXXXX/
```
# HOTFIX:
Change user and group ownership of temporary folder to mount in to the user (uid) and group (gid) of the previous home directory after creation but *before* trying to mount.
# REPRODUCE:
Steps (specific real info replaced with vars):
1. Boot from Lubuntu 18.04 (bionic) daily-live (from 2018-05-04). recover- private "$mnt"/ home/.ecryptfs/ "$user" /.Private/ .ecryptfs/ $user/. Private/ ]. $XXXXXXXX: mount(2) system call failed: No such file or directory. $XXXXXXXX] .
2. Create user with the same uid as was used by previous home user ($user).
3. Logout & sign in as $user.
4. Mount *partition* with previous home (to $mnt).
5. Install ecryptfs utils:
```bash
$ sudo apt install ecryptfs-utils
```
6. Mount previous home:
```bash
$ sudo ecryptfs-
INFO: Found [$mnt/home/
Try to recover this directory? [Y/n]:
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n]
INFO: Enter your LOGIN passphrase...
Passphrase:
Inserted auth tok with sig [$ecryptfs_sig] into the user session keyring
mount: /tmp/ecryptfs.
ERROR: Failed to mount private data at [/tmp/ecryptfs.
```
```bash $XXXXXXXX $XXXXXXXX/
$ ls -ld /tmp/ecryptfs.
drwx------ 2 root root 40 May 5 17:04 /tmp/ecryptfs.
```
# HOTFIX:
Change user and group ownership of temporary folder to mount in to the user (uid) and group (gid) of the previous home directory after creation but *before* trying to mount.
Don't know if this is a workaround or a fix.