Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dungmanh88/b9e504ccb93983178b936b86624d9eb7 to your computer and use it in GitHub Desktop.
Save dungmanh88/b9e504ccb93983178b936b86624d9eb7 to your computer and use it in GitHub Desktop.
Change password with encrypted home directory in Ubuntu
sudo passwd username
ecryptfs-mount-private ### Enter old password
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase ### Enter new password
ecryptfs-unwrap-passphrase ### Recheck passphrase with new password. Passphrase is unchanged when you change your login password
Passwords and Keys > Change password of login keyring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment