2

I set up a ~/Private directory, but now i want to change the passphrase i used. I moved all files out of that folder in order to start from scratch. So far i tried with:

~ $ cd /
/ $ ecryptfs-umount-private
/ $ ecryptfs-setup-private --force

I change to root because otherwise i would be unable to unmount. ecryptfs-setup-private then asks me to logout and login agan, but after doing that, i still cannot use my new passphrase to unmount and mount the directory again:

~ $ cd /
/ $ ecryptfs-umount-private 
/ $ ecryptfs-mount-private 
Enter your login passphrase:
Error: Unwrapping passphrase and inserting into the user session keyring failed [-5]
Info: Check the system log for more information from libecryptfs
ERROR: Your passphrase is incorrect

I think that the new passphrase was actually not adopted by ecryptfs, for some reason.

Note about duplication:

This question is a duplicate of this one, but i found the latter unclear and not helpful, because it is focusing about wrapping and unwrapping the passphrase, which is not related to this problem as far as i understand

danza
  • 153

1 Answers1

1

As said in Change the passphrase of an ecryptfs directory :

There is no way to change the passphrase on the fly as ecryptfs encrypts each file with that passphrase individually and all files need to be rewritten with the new passphrase.

So all you can do is create a new directory, mount it with the new passphrase and copy all the files over there.

TheFisch
  • 103
  • 1
  • 1
  • 6