Change password for encrypted filesystem , cryptsetup
Change password for encrypted filesystem
If you have created encrypted partitions using cryptsetup you might change the password from time to time.
This can be achieved with following procedure:
Check which key slot is occupied (probably slot 0 if you have never done this)
cryptsetup luksDump /dev/sda#
Now you need to add a new key which will use the next free key slot:
cryptsetup luksAddKey /dev/sda#
Finally you can remove the previous key ( in this example slot 0):
cryptsetup luksKillSlot /dev/sda# 0
luksKillSlot requires a remaining password in another key slot to work.
posted on 2012-12-24 16:08 Richard.FreeBSD 阅读(191) 评论(0) 收藏 举报
浙公网安备 33010602011771号