Updating passphrase on LUKS home directory
export PARTITION=/dev/mapper/linux1----vg-home
sudo cryptsetup luksDump ${PARTITION}
sudo cryptsetup luksAddKey ${PARTITION}
sudo cryptsetup luksDump ${PARTITION}
change user password to new password
reboot (to ensure partition is unmounted
log in
verify LUKS is back with new password
then
export PARTITION=/dev/mapper/linux1----vg-home
sudo cryptsetup luksRemoveKey ${PARTITION}
sudo cryptsetup luksDump ${PARTITION}
sudo cryptsetup luksAddKey ${PARTITION}
sudo cryptsetup luksDump ${PARTITION}
change user password to new password
reboot (to ensure partition is unmounted
log in
verify LUKS is back with new password
then
export PARTITION=/dev/mapper/linux1----vg-home
sudo cryptsetup luksRemoveKey ${PARTITION}
Comments
Post a Comment