Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to stop using built-in home directory encryption?

i know encrypted home directory is a great security function but i want tot disable it. i am using Acronis True Image Server for Linux to backup my files and partition ( in power on state, not offline ).

After mounting Acronis image, my home directory contains no files. I cant find none of my files,folders bla bla. Only files can i see is directories named /.encryptfs_fnek_encrypted_looonggstuffid???? in /home/.encryptfs/myusername/.Private

so i want to disable home encryption, but how ?

share|improve this question

marked as duplicate by Jorge Castro, Bruno Pereira May 18 '12 at 17:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 3 down vote accepted

I'd try:

ecryptfs-setup-private --undo

But other user suggest a longer method:

1st thing to do : BACKUP YOUR HOME I can't say it louder... basically undoing encryption is equivalent to resetting (rm -rf) your home, which is in fact hidden by a mount.

2nd step : log out of any desktop manager and go to a virtual console (CTRL-ALT-F1) Finally : for details :

ecryptfs-setup-private --undo

In the event that you want to remove your eCryptfs Private Directory setup, you will need to very carefully perform the following actions manually:

  1. Obtain your Private directory mountpoint

    PRIVATE=cat ~/.ecryptfs/Private.mnt 2>/dev/null || echo $HOME/Private

  2. Ensure that you have moved all relevant data out of your $PRIVATE directory

  3. Unmount your encrypted private directory


  4. Make your Private directory writable again

    chmod 700 $PRIVATE

  5. Remove $PRIVATE, ~/.Private, ~/.ecryptfs Note: THIS IS VERY PERMANENT, BE VERY CAREFUL

    rm -rf $PRIVATE ~/.Private ~/.ecryptfs

  6. Uninstall the utilities (this is specific to your Linux distribution)

    sudo apt-get remove ecryptfs-utils libecryptfs0

I would say step 5 is a bit wrong : there's no need to delete $PRIVATE, which was for me my home....

After .Private and .ecryptfs deletion, just restore your home :]

share|improve this answer
Thank you men, i will test it on a virtual machine first, so as i understand its very dangerous operation, and needs attention. – Darkyyy May 21 '12 at 10:52
Couldn't login after this. Lucky I took a snapshot. In the end I created a temp admin account, deleted my old account, created it again, then deleted the temporary account. – balupton Apr 3 '13 at 12:39
Same here, this broke my login. – thouliha Aug 25 '15 at 16:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.