How do cleanly remove all remnants of my Encrypted Private Directory and start over fresh?
For various reasons, users may want to remove all remnants of an Encrypted Private directory and start over. The following steps will explain how to do this.
HOWEVER, BE WARNED...THIS REMOVAL IS PERMANENT. ENSURE THAT YOU HAVE APPROPRIATE BACKUPS, OR THAT THERE IS NO DATA OF VALUE.
Ensure that the encrypted private directory is not mounted
$ umount.
$ mount | grep ecryptfs
Make the unmounted Private directory writeable, so that we can remove it
$ chmod 700 ~/Private
Remove the mountpoint and the underlying data directory. NOTE: THIS IS PERMANENT!!!
$ rm -rf ~/Private ~/.Private
Remove your ecryptfs rc file, if it exists. NOTE: THIS IS PERMANENT!!!
$ rm -f ~/.ecryptfsrc
Remove your ecryptfs configuration data, wrapped passphrase, and key signature. NOTE: THIS IS PERMANENT!!!
$ rm -rf ~/.ecryptfs
Install the keyutils package, and clear your keyring.
$ sudo apt-get install keyutils
$ keyctl clear @u
The pam_ecryptfs module will still be in your PAM stack, though it should have no effect if you do not have an encrypted private directory. If you want to complete clear ecryptfs off your system:
$ sudo apt-get remove ecryptfs-utils libecryptfs0
The set up an encrypted private directory again, you can logout, log back in, and run:
$ ecryptfs-
:-Dustin
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Dustin Kirkland
- Solved:
- Last query:
- Last reply: