Cannot delete a single user ~/Private folder

Bug #298421 reported by syscon-hh
2
Affects Status Importance Assigned to Milestone
eCryptfs
Fix Released
Undecided
Dustin Kirkland 
ecryptfs-utils (Ubuntu)
Fix Released
Undecided
Dustin Kirkland 

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-setup-private" generates a new folder inside the home-area, after logout and coming back - so it's intended and works.

Having more users than one, every one can do as well in his/her home-area -> it works too!

But if one of these wants to delete the ~/Private folder separate, there is no command to do so else to deinstall the package "ecryptfs-utils" on common operating system totally". I'm missing a command as "ecryptfs-delete-private" available for each user.

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

Kill the cat!!!!! HowTo for a specific user:

The user must typ in a terminal -> "umount.ecryptfs_private"
Root must typ in a terminal:
-> cd /home/<username>
-> sudo rm -rf Private .Private .ecryptfs

that's it

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 298421] Re: Cannot delete a single user ~/Private folder

You don't have to do this as root, you can do this as the
non-privileged user with:

$ ecryptfs-umount-private
$ chmod 700 Private
$ rm -rf ~/.ecryptfs ~/.Private ~/Private

Understanding, of course, that you're blowing away any and all data in
those directories.

I don't think that I'm going to provide a utility to do this.

However, I could perhaps create a utility, ecryptfs-delete-private, as
you suggest, that prints these 3 steps to the screen, with appropriate
safeguard warnings. Would this suffice?

:-Dusitn

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I have documented this procedure here:

https://help.ubuntu.com/community/EncryptedPrivateDirectory

:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'll create an ecryptfs-delete-private utility that prints the instructions to screen.

:-Dustin

Changed in ecryptfs:
assignee: nobody → kirkland
status: New → Triaged
Revision history for this message
syscon-hh (syscon-kono) wrote :

@Dustin:
Yor message regarding the HowTo - I added another bug-report #299216,
because the command "ecryptfs-umount-private" dosn't work.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Fix committed upstream. Added a --undo option to ecryptfs-setup-private.

See:
 * http://git.kernel.org/?p=linux/kernel/git/mhalcrow/ecryptfs-utils.git;a=commit;h=934992f477643abe46daa21eee7de3e77f73c2cb

:-Dustin

Changed in ecryptfs:
status: Triaged → Fix Committed
Changed in ecryptfs-utils:
assignee: nobody → kirkland
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.8 KiB)

This bug was fixed in the package ecryptfs-utils - 66-2ubuntu1

---------------
ecryptfs-utils (66-2ubuntu1) jaunty; urgency=low

  * Merge from debian unstable,
    (LP: #259631, #293433, #286265, #247421, #294888, #298421)
  * Remaining changes:
    - debian/ecryptfs-utils.postinst: handle pam-auth-update (Bug: #506172)
    - debian/rules:
      + keep the dpatch infrastructure around, as we'll likely
        need it again at some point soon
      + install the desktop, readme, and pam-auth-update files ()
    - debian/ecryptfs-utils.install: install the desktop, readme shared files
      (Bug: #506172)
    - debian/control:
      + keep the dpatch build dep
      + depend on libpam-runtime (Bug: #506172)
    - debian/ecryptfs-utils.prerm: remove pam-auth-update configuration
      (Bug: #506172)
    - debian/ecryptfs-mount-private.txt: readme to install in unmounted
      private dir (Bug: #506172)
    - debian/ecryptfs-mount-private.desktop: desktop link to install in
      unmounted private dir (Bug: #506172)
    - debian/ecryptfs-utils.dirs: usr share install dirs (Bug: #506172)
    - debian/ecryptfs-utils.pam-auth-update: pam stack configuration
      (Bug: #506172)

ecryptfs-utils (66-2) unstable; urgency=low

  * Removing auth-client-config support, no longer used.
  * Adding ecryptfs-utils recommends to keyutils.
  * Building without ssl, ecryptfs_key_mod_openssl.c has incompatible
    license (GPL-2+).
  * Building without pkcs11 helper, ecryptfs_key_mod_pkcs11_helper.c
    links against openssl and has incompatible license (GPL-2+).
  * Building without pkcs11 helper, ecryptfs_key_mod_tspi.c links
    against openssl and has incompatible license (GPL-2+).

ecryptfs-utils (66-1) unstable; urgency=low

  * Manually adding second line of the commit message when merging
    upstream version 65 to changelog.
  * Merging upstream version 66.
  * Adding ecryptfs-utils.postinst to create /var/lib/ecryptfs on
    package installation time.

ecryptfs-utils (65-1) unstable; urgency=low

  * Merging upstream version 65:
    - Adds --wrapping option to ecryptfs-setup-private command to use an
      independent wrapping passphrase, different from the login passphrase
      (Closes: #505008).
  * Removing pam-doc.dpatch, went upstream.
  * Adding build-depends to swig.
  * Adding build-depends to python-dev.
  * Including python bindings in libecryptfs0.

ecryptfs-utils (64-3) unstable; urgency=low

  * Replacing obsolete dh_clean -k with dh_prep.
  * Adding patch from Osamu Aoki <email address hidden> to update
    ecryptfs-pam-doc.txt contents with s/Confidential/Private/
    (Closes: #504934).
  * Updating homepage and download location in control and copyright
    (Closes: #504930).
  * Updating author information in copyright.
  * Installing desktop shortcut and readme to /usr/share/ecryptfs-utils.
    Together with the fixes of upstream version 64, this interactively prompts
    for passwords now (Closes: #504370).

ecryptfs-utils (64-2) unstable; urgency=low

  * Adding build-depends to python (Closes: #504719).

ecryptfs-utils (64-1) unstable; urgency=low

  * Removing sbin-path.dpatch, not needed anymore.
  * Building with --enable-static, ...

Read more...

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