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

2017-05-22 Thread david braun
*** This bug is a duplicate of bug 313812 ***
https://bugs.launchpad.net/bugs/313812

Also - most of the above processes only exist for graphical logins.
However, the private folder isn't unmounted for non-graphical logins
either even though there are no processes left behind and the counter in
/dev/shm/ecrypt-$USER-Private no longer exists.

Sorry I didn't mention this before but this problem has existed for
quite a while and still exists in Ubuntu 17.04.

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

Title:
  Encrypted home directory doesn't always dismount after logout.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/507150/+subscriptions

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


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

2017-05-22 Thread david braun
*** This bug is a duplicate of bug 313812 ***
https://bugs.launchpad.net/bugs/313812

BTW - the post-logout list of persisting processes exists for users
regardless of whether or not their home directory is encrypted.

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

Title:
  Encrypted home directory doesn't always dismount after logout.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/507150/+subscriptions

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


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

2017-05-22 Thread david braun
*** This bug is a duplicate of bug 313812 ***
https://bugs.launchpad.net/bugs/313812

This isn't really a duplicate of bug #313812. The home directory is not
being unmounted. Bug #313812 concerns the key-ring.

I created a user (zip) with an encrypted home folder, logged in, started
a terminal and verified that the encrypted home folder was mounted. I
then logged out and logged in as another user with root (sudo)
privileges and checked what was mounted. "/home/.ecryptfs/zip/.Private"
was still mounted in "/home/zip". I then checked "/dev/shm/ecryptfs-zip-
Private" and the value was 1. I then checked what processes owned by
"zip" were running.

root@braun-asus:~# ps -u zip
  PID TTY  TIME CMD
 4173 ?00:00:00 systemd
 4183 ?00:00:00 (sd-pam)
 4199 ?00:00:00 dbus-daemon
 4329 ?00:00:00 gvfsd
 4336 ?00:00:00 gvfsd-fuse
 4369 ?00:00:00 ibus-daemon
 4416 ?00:00:00 ibus-dconf
 4465 ?00:00:00 dconf-service
 4468 ?00:00:00 ibus-engine-sim
 4618 ?00:00:00 evolution-sourc
 4633 ?00:00:00 libertined
 4672 ?00:00:00 goa-daemon
 4708 ?00:00:00 goa-identity-se
 4757 ?00:00:01 mission-control
 4810 ?00:00:00 gvfs-udisks2-vo
 4825 ?00:00:00 gvfs-mtp-volume
 4829 ?00:00:00 gvfs-goa-volume
 4839 ?00:00:00 gvfs-gphoto2-vo
 4848 ?00:00:00 gvfs-afc-volume
 4904 ?00:00:00 gconfd-2
 4911 ?00:00:00 gvfsd-trash
 4937 ?00:00:00 gvfsd-burn
 4955 ?00:00:00 gvfsd-metadata
 4992 ?00:00:00 zeitgeist-daemo
 5000 ?00:00:00 zeitgeist-fts
I also checked what files were open by processes owned by "zip" - 164! So it is 
reasonable that, under these conditions, the encrypted home remained mounted. 
The problem is that all these process are persisting after log out. I suspect 
getting rid of them will solve the problem.

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

Title:
  Encrypted home directory doesn't always dismount after logout.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/507150/+subscriptions

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


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

2011-03-09 Thread Dustin Kirkland
*** This bug is a duplicate of bug 313812 ***
https://bugs.launchpad.net/bugs/313812

The portion of this bug dealing with keys is actually a duplicate of Bug
#313812, which was recently fixed!

As for the rest of it (not unmounting as long as a user is still in the
encrypted directory, open file handles, etc), that behavior is by
design, and not much we can do to avoid it.

Thanks.

** This bug has been marked a duplicate of bug 313812
   umount of ecryptfs does not automatically clear the keyring (can be mounted 
by root later)
 * You can subscribe to bug 313812 by following this link: 
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/313812/+subscribe

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

Title:
  Encrypted home directory doesn't always dismount after logout.

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


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

2011-01-25 Thread Leo
** Changed in: ecryptfs
   Status: Incomplete = Confirmed

** Also affects: ubuntu
   Importance: Undecided
   Status: New

** Package changed: ubuntu = ecryptfs-utils (Ubuntu)

** Changed in: ecryptfs-utils (Ubuntu)
   Status: New = Confirmed

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

Title:
  Encrypted home directory doesn't always dismount after logout.

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


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

2011-01-25 Thread Leo
I could partially reproduce it.

As long as there was a user inside /home/USER (root in my case), the
user logged out but his homefolder was not completely umounted.

Running mount didn't show it. Running ls, cd, etc would show all
the files. Further tests:

USER LOG IN
ROOT CD /HOME/USER
USER LOG OUT
# ls
[see user's files!]
# df .
Filesystem   1K-blocks  Used Available Use% Mounted on
-  8254272   5523548   2311428  71% /
# cat /dev/shm/ecryptfs-USER-Private
0
# sudo -u USER keyctl list @u
2 keys in keyring:
...
...
# cd /
# ls /home/USER
[nothing]
# sudo -u USER keyctl list @u
keyring is empty

But the second time I tried the same tests, it was worse:
USER LOG IN
ROOT CD /HOME/USER
USER LOG OUT
#ls
[see user's files!]
# cd /
# ls /home/USER
[nothing]
# sudo -u USER keyctl list @u
2 keys in keyring:
...
...
# ps gaux | grep USER
USER  3788  0.0  0.0   6460   724 pts/2S13:17   0:00 login 
# kill -9 3788
# sudo -u USER keyctl list @u
keyring is empty

So I tried the same thing again, but more nasty. I could see USER's
files!!!

USER LOG IN
ROOT CD /HOME/USER
USER LOG OUT
# cd /
# ls /home/USER
[nothing]
# sudo -u USER keyctl list @u
2 keys in keyring:
...
...
# ps gaux | grep USER
USER  3788  0.0  0.0   6460   724 pts/2S13:17   0:00 login
# sudo -u anaclara ecryptfs-mount-private
# kill -9 3788
# sudo -u USER keyctl list @u
keyring is empty
# ls /home/USER
[See user files!!!]
# mount
...
/home/USER/.Private on /home/USER type ecryptfs (...)
# df /home/USER
Filesystem   1K-blocks  Used Available Use% Mounted on
/home/USER/.Private
  90606688  81207632   9399056  90% /home/USER

Now when I had another user rather than root that had CDed into USER's home, it 
was a bit different...
When USER logged out it had the message
$ exit
logout
Sessions still open, not unmounting
$$ ps gaux | grep USER
USER  4497  0.0  0.0   6460   720 pts/2S13:32   0:00 login
$$ ls ~USER
[See files!]
$$ mount
[See mounted!]
$$ sudo -u USER keyctl list @u
Sudo password: *
2 keys in keyring:
...
...
$$ sudo umount /home/USER
$$ sudo -u USER keyctl list @u
keyring is empty
$$

So, I could reproduce all sorts of behavior, and it is apparently not
deterministic.

** Tags added: apport-collected

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

Title:
  Encrypted home directory doesn't always dismount after logout.

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