How to Change a LUKS Password

Written by gabriele sturmer
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Change a LUKS Password
You can change your LUKS password in a few easy steps. (B2M Productions/Polka Dot/Getty Images)

Linux uses a disk encryption utility called Linux United Key Setup (LUKS) and lets you encrypt a partition on a SCSI or IDE hard drive. Because LUKS includes its tools on the encrypted disk, you can only use and access the encrypted disk on the Linux operating system. LUKS lets you use up to eight passwords to access an encrypted disk. If you want to change a password, you must first add a new password and then remove the old one from LUKS.

Skill level:
Moderately Easy

Other People Are Reading


  1. 1

    Open a terminal window and find the name for the partition of the encrypted drive by typing "sudo ls /dev/hd" if you use IDE hard drives, or "sudo ls /dev/sd" if you use the SCSI drive system. Type "sudo cryptsetup luksAddKey /dev/sda5", changing "sda5" to the name of the encrypted partition.

  2. 2

    Enter your current LUKS password when prompted so that LUKS can unlock a password slot. Enter a new password when prompted and type it again for verification to set the new password.

  3. 3

    Type "sudo cryptsetup luksKillSlot /dev/sda5 0",changing "sda5" to the name of the encrypted partition. Enter your original password when prompted. LUKS deletes the password so that only the new one works.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.