← Back to team overview

ecryptfs team mailing list archive

[Bug 507150] Re: Encrypted home directory doesn't always dismount after logout.

 

There is a counter in /dev/shm/ecryptfs-$USER-Private.  You can cat that
file.

Your home directory won't be unmounted until that counter hits 0.

On a normal a) login, b) do stuff, c) logout, that counter will go from
a) 0, b) 1, c) 0.  And it will be unmounted properly.

A login can consist of any of a graphical login, an ssh login, and a tty
console login.

The counter exists such that if you're logged in graphically, and then
you ssh in, you now have a counter of 2.  You will need to exit both of
those sessions to get the session back down to 0, and to have PAM
unmount it.

My guess is that you have logged in multiple times, and one of those
sessions is still open.  I do this sometimes, with SSH + screen.

Cron can also cause issues.

Do any of these situations explain your issue?

:-Dustin

** Changed in: ecryptfs
       Status: New => Incomplete

** Changed in: ecryptfs
   Importance: Undecided => Low

-- 
Encrypted home directory doesn't always dismount after logout.
https://bugs.launchpad.net/bugs/507150
You received this bug notification because you are a member of eCryptfs,
which is a direct subscriber.

Status in eCryptfs - Enterprise Cryptographic Filesystem: Incomplete

Bug description:
I have my full home directories encrypted for each user.

I've noticed that sometimes if I logout and then login in with another user with sudo privileges I can still browse through my home directory, i.e. ecryptfs hasn't dismounted my home directory.

It seems to be happening in about one third of instances and so far it's only happened with my own account. I'm totally unable to reliably reproduce this at the moment and can't see anything untoward in the logs.

I could do with some tips on how to diagnose this.

Thanks.

Using Ubuntu 9.10, fully up to date. Ecryptfs-utils version 81-0ubuntu3.







References