how to change password of an enrypted ubuntu user account?

7,130

To fix this, simply run:

ecryptfs-rewrap-passphrase /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase

It will prompt you for your old passphrase, then allow you to enter a new one. Then, you will be able to log in normally.

Found on: https://askubuntu.com/a/439290/254032

Share:
7,130
Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin over 1 year

    I changed my ubuntu user password using:

    $ sudo passwd
    

    now when I reboot and login using the new password, following warning is displayed:

    Signature not found in user keyring
    perhaps try the interactive 'ecrypt-mount-private'
    

    Also

    $ ls command 
    

    shows only these 2 dir: Access-your-private-data.desktop and README.txt

    I tried to start the graphical interface using:

    $ startx
    

    but recieved the following error:

    timeout in accessing locking authority file /home/my_username(aman)/.Xauthority
    

    I remember my old and new passwords but forgot the passphrase, so retrieved it using:

    $ ecryptfs-unwrap-passphrase /home/aman/.ecryptfs/wrapped-passphrase
    

    After this I'm not able to make out how to proceed and login to my home foler in graphical interface.

  • XavierStuvw
    XavierStuvw over 7 years
    ecryptfs-rewrap-passphrase caused me some troubles. See description unix.stackexchange.com/questions/329661 for your consideration
  • Czarek Tomczak
    Czarek Tomczak over 3 years
    On other forums found a hint that you cannot change user password before running ecryptfs-rewrap-passphrase. If you did it, restore old user password and change it only after running the rewrap command.