ecryptfs-utils "ecryptfs-umount-private" don't work

Bug #299216 reported by syscon-hh
2
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ecryptfs-utils

Intrepid Ibex - last updated
Kernel 2.6.27-7-generic
Gnome-Desktop 2.24

Using the command "ecryptfs-umount-private" in an user-terminal nothing will change.
It's seeming to me a failure occures inside /usr/bin/ecryptfs-umount-private at these two lines

       count=`who | grep "^$username " | wc -l`
       if [ $count -le 1 ]; then

If I added a >!< as follows, the command is still working well

       count=`who | grep "^$username " | wc -l`
       if [ ! $count -le 1 ]; then

due to >$count< is always >2< in a single user System, but I'm not so experienced to make the decission, what has to be rewritten.

The command "ecryptfs-mount-private" works fine!!

syscon-hh (syscon-kono)
description: updated
description: updated
description: updated
Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 299216] [NEW] ecryptfs-utils "ecryptfs-umount-private" don't work

What version of ecryptfs-utils are you using? That functionality is
deprecated and fixed in a new version.

dpkg -l | grep ecryptfs-utils

:-Dustin

Revision history for this message
syscon-hh (syscon-kono) wrote :

Just updated 2008-11-18:CEST 08:12 - to validate, no changes:

root@IBEX-HOME:/home/laurar# dpkg -l | grep ecryptfs-utils
ii ecryptfs-utils 53-1ubuntu12 ecryptfs cryptographic filesystem (utilities
root@IBEX-HOME:/home/laura#

Same content inside ubuntu Intrepid (8.10) Ibex file, see annex

last change date on file = 2008-10-30

Revision history for this message
syscon-hh (syscon-kono) wrote :

Sorry - I just now opened my >intrepred-proposed< packages, so it's OK!

root@IBEX-HOME:/home/laura# dpkg -l | grep ecryptfs-utils
ii ecryptfs-utils 53-1ubuntu13 ecryptfs cryptographic filesystem (utilities
root@IBEX-HOME:/home/laura#

Has been reduced to -> /sbin/umount.ecryptfs_private

But why did you reduce it - due to a multiuser-system I guess you need the >whoiam-funktion<

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 299216] Re: ecryptfs-utils "ecryptfs-umount-private" don't work

I moved much more robust instance counting code into
mount.ecryptfs_private and umount.ecryptfs_private themselves. They
keep track of successful and unsuccessful mounts in a tempfile.

The 'whoami' code was flimsy and buggy, and never quite worked
correctly. And with a better built-in counter, completely
unnecessary. It should have been removed weeks ago, but I forgot.

Thanks for the report, closing.

:-Dustin

Changed in ecryptfs-utils:
status: New → Fix Released
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.