Encrypted home directory unmounted when logging out of secondary terminal

Bug #1603717 reported by William Tate
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Fully updated locally, multiple reboots before/after.

Ubuntu 16.04 Xenial
libecryptfs1 - 111-0ubuntu1.1
Using kubuntu GUI (possible cause?)

Problem:
Encrypted home directory as part of install process.
Logging into GUI as normal user.
Switch to alternate terminal (ctrl-alt-F2) - do not log out of GUI
Log into same normal user in that terminal.
Log out of that terminal.
Switch back to GUI interface (ctrl-alt-F7)
Open terminal.
ls on home directory
Shows results of:

. .. Access-Your-Private-Data.desktop .bash_history .cache .ecryptfs .kde .local .Private README.txt .viminfo

Logging back into alternate terminal results in home directory being remounted.

Expected result (any/all of the following):
1) When at least one open(local) login is still active, leave encrypted directory mounted.
2) Notify user that home directory was unmounted
3) Notify user when attempting to access home directory that it is unmounted/not accessible
4) Allow actively logged in user(pre-verified) to remount drive.
5) Notify user logging out that drive will be unmounted.

What happens:
No notifications that this happened occur. Attempting to perform any actions that require access to home directory fails. As this was my first install with the encrypted home directory, wasn't sure why my home dir was suddenly missing when I hadn't logged out, just died. I thought initially this was a failure with the encryption certificates, and I'd just lost everything. Was looking into options to roll back encryption and any way I might be able to recover lost data when I logged into terminal again and it was there. Cross verified with GUI(still logged in) that home dir was now accessible.

Also, I notice if I have multiple terminals open(local or remote), and exit any/all but one, the home directory remains logged in. The moment the last terminal is logged out, the directory is unmounted, which results in the GUI being unable to access that directory. Again, this may point to a Kubuntu usage instead of just Unity(default?). However, I would still expect this to work the same, regardless of what desktop environment is being used.

Work-around: Remain logged into at least one terminal will allow home directory to work again. This probably should only be temporary, allowing time to do necessary saves/closing and log out of GUI/terminal to log back in.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.