cryptsetup luksChangeKey /dev/sdb1

Category: Security & Hardening

cryptsetup luksChangeKey /dev/sdb1

Change a passphrase on a LUKS volume

Replaces one of the volume's passphrases after prompting for the old and new ones, useful for routine key rotation. The number of slots stays the same. Confirm the slots with cryptsetup luksDump /dev/sdb1.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.