change LUKS filesystem password
On Thu, 2011-08-11 at 14:35 -0700, Paul Heinlein wrote:
> On Thu, 11 Aug 2011, ken wrote:
> > How do you change the LUKS filesystem password?
> [Caveat: this is sort of from memory; I don't have a luks-encrypted
> device handy for testing...]
> First, add a second key (password):
> cryptsetup luksAddKey /dev/XXX
> Then delete the original key
> cryptsetup luksKillSlot /dev/XXX 0
> You need to be careful to get the slot numbers correct. Use the
> luksDump option to see how things are setup on your system.
luksKillSlot does not work for me on Centos 5.6. luksDelKey does.
CentOS mailing list