Closing cryptkeeper should unmount all stashes

Bug #182535 reported by David Prieto
4
Affects Status Importance Assigned to Milestone
cryptkeeper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: cryptkeeper

I have noticed that if I mount a stash with cryptkeeper and then close the program, the folder stays open. This seems to me like a safety vulnerability, since I might have forgotten to unmount a given stash and it would still be available for anyone to access. Also, it leaves no way to unmount it from nautilus.

To sum up, I think stashes should only be mounted and available when cryptkeeper is open.

Revision history for this message
Γουργιώτης Γιώργος (aka Gourgi) (gourgi) wrote :

I confirm it should unmount the stashes at exit.

@ David you can umount it from the commandline by typing
fusermount -u /my/stash/folder/here

Changed in cryptkeeper (Ubuntu):
status: New → Confirmed
Revision history for this message
Paillomams (aymeric-pallottini) wrote :

It is the same when you close your session all the stashes should be unmounted. If you don't do it manually via cryptkeeper or fusemount your stash will be available for the next user who log on. Cryptkeeper doesn't do it automatically and encfs doesn't do it most of the time.
Would be nice to have an option to unmount stash on screen saver, screen lock, hibernate and suspend as well.

Revision history for this message
Axel Pospischil (apos) wrote :

Hi there,

I was a little bit annoyed that when i logged out, crytkeeper does not take care of unmounting my directories.

So I wrote a little script you should put into

/etc/gdm/PostSession/Default

The script umounts ALL existing encfs filesystems on you PC after logout of a gnome session:

for dir in "$(cat /etc/mtab | grep encfs | awk '{print $2}' | sed -e 's/40/ /g')"
do
echo "${dir}" | awk '{system("umount " $0)}'
done

Greets Axel

Revision history for this message
Axel Pospischil (apos) wrote :

The above script was NOT added in the right way: I post an attachement instead.

Revision history for this message
Axel Pospischil (apos) wrote :

Addendum:
If you like your temporary folders to be removed use the following line between do and done:

echo "${dir}" | awk '{system("umount " $0); system("rm -rf " $0);}'

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.