15
[ Solved ] I can't change Disk Encryption password
(infosec.pub)
Linux questions Rules (in addition of the Lemmy.zip rules)
Tips for giving and receiving help
Any rule violations will result in disciplinary actions
The correct syntax is
cryptsetup luksChangeKey <device> <key file>
. So what you tried is opening a file that is named like your new passphrase. Such a file of course (hopefully) doesn't exist.Just omit the last parameter, i.e.
sudo cryptsetup luksChangekey /dev/nvme0n1p3
and enter the new password when it asks you to.