Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hirusha-adi/676724ea65abdd17b9d05b8eb76833fd to your computer and use it in GitHub Desktop.
Save hirusha-adi/676724ea65abdd17b9d05b8eb76833fd to your computer and use it in GitHub Desktop.

Remove Password Policy in the Calamares Installer on Debian Live

You can download Debian Live install images from the official website. Both the stable and testing releases are available. Choose the one that suits your needs.

Steps:

  1. Boot into the Live environment.

  2. Open a terminal emulator.

  3. Locate the file that defines the password policy:

    sudo find /etc/calamares -name "*users.conf"

    image

  4. Open the file using your preferred text editor (I'll be using nano):

    sudo nano /etc/calamares/modules/users.conf
  5. You’ll see something like this:

    passwordRequirements:
      nonempty: true
      minLength: -1
      maxLength: 0
      libpwquality:
        - minlen=0
        - minclass=0
  6. Comment out or remove the existing values, and update the section to look like this:

    passwordRequirements:
      minLength: 1
  7. Now, (re-)launch the Calamares installer.

You should now be able to set a simple password without any restrictions - though it's not recommended for bare-metal installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment