I wondering where are places luks key password. For example password for root is in
etc/shadow. Where I can find file with luks key password?
I add this
cryptsetup luksAddKey --key-slot 1 /dev/sda5 what is directory of file with this password?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The key material is stored after the LUKS partition header (so no file).
The key slots can be viewed using:
cryptsetup luksDump /dev/<your_disk>