Comment 62 for bug 212789

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

jhansonxi wrote:
This bug is causing a security issue for me. I'm using pam_mount to unlock and mount a LUKS/dm-crypt volume to my home directory at login. At logout it doesn't unmount and lock because fuse.gvfs has ~/.gvfs open. The script suggested in comment #14 did not solve the issue.

Try it without the surrounding if-test, just use:

/bin/fusermount -zu "$HOME/.gvfs" 1>/dev/null 2>&1 || true

I fixed that myself, because the surrouding if-test will fail if the gvfs fuse-daemon has died, which unfortunately happens quite often.