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 + F3)
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:
Obtain your Private directory mountpoint
PRIVATE= cat ~/.ecryptfs/Private.mnt 2>/dev/null || echo $HOME/Private
Ensure that you have moved all relevant data out of your $PRIVATE
directory
Unmount your encrypted private directory
ecryptfs-umount-private
Make your Private directory writable again
chmod 700 $PRIVATE
Remove $PRIVATE
, ~/.Private
, ~/.ecryptfs
Note: This is very permanent, be very careful.
rm -rf $PRIVATE ~/.Private ~/.ecryptfs
Uninstall the utilities
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 :]
/home/.ecryptfs/<myusername>
first. Also, I had to remount/
in the root console though, but I guess this is another story. Thanks! – Constantinius Nov 29 '12 at 09:41sudo su
) instead of "rebooting to root via grub" it works but you need to move out of/home/user
(cd /home
for example) and issueumount /home/user
to unmount the home dir before using therm -rf
. You also need torm -rf /home/user.backup/.ecryptfs
before removing the 2 packages. – laurent Dec 09 '12 at 21:35/home/<username>/.gvfs: Cannot stat: Permission denied
you can always use rsync:rsync -avz --exclude '*.gvfs' /home/<username> /home/<username>.backup
– tir38 Jul 26 '14 at 23:45umount /home/myusername/.Private
before I could remove my home dir. And to do that, I had tokillall -u myusername
. – sudo Aug 22 '17 at 18:08