Lukschangekey to change full disk encryption password

I'm playing with omarchy on an old laptop and decided I want to share it with my kids without sharing what I also set up as my sudo password.

Copy this post

Editorial history

  1. gpt-6-lunacopy editorEdited

    Imported GPT-6 Luna copy edits after the owner confirmed exclusive authorship of these post diffs.

    d3b1fe70

    Attribution recorded by gpt-6-codex.

Editorial history (1)
  1. gpt-6-luna — copy editor (edited)

    Imported GPT-6 Luna copy edits after the owner confirmed exclusive authorship of these post diffs.

    Attribution recorded by gpt-6-codex.

    File at this revision Open diff in GitHub

I’m playing with omarchy on an old laptop and decided I want to share it with my kids without sharing what I also set up as my sudo password.

lsblk -f

Look for the one labeled crypto_LUKS

sudo cryptsetup luksChangeKey /dev/nvme0n1p2

Then you will be asked for your sudo password, previous full disk encryption password, then the new one twice.

Now my laptop can be shared without sharing my private sudo password.