Ubuntu 25.04: Quick way to allow a simple password using pam-auth-update

Use-case:
Living / bedroom room PC that only plays videos (media station).
Input is a tiny wireless keyboard (Ex: Rii Wireless Keyboard).
Typing a long, complex password is annoying; so you want something quick like aaabbb.
Ubuntu doesn’t have 4 digit PINs like Windows, so instead we have to settle for 6 digit passwords
The default Ubuntu settings require complex passwords 8 characters or longer.

  1. Open the PAM configuration menu Prior to running the next command which opens an interactive TUI (text UI), optionally backup /etc/pam.d/common-password.
   sudo pam-auth-update --force
  1. In the text‑UI checklist, uncheck:
   [ ] Password quality checking

Press Space to toggle, Tab to move to OK, Enter to save.

  1. Set your short password (e.g., aaabbb):
   sudo passwd <your‑username>

   # or if already logged in
   passwd
  1. (Optional) Re‑enable the quality check later by running the same command and ticking the box again.
    Your current password stays valid; the policy only affects future changes.

Security Trade-offs

BenefitRisk
Instant sign-in from couch-keyboardAnyone with physical access can log in
No need to remember a complex stringRemote attacks stay possible if SSH is open
Easy to change back laterWeak sudo password if you keep the same PIN

Minimum precautions

  • Disable or firewall SSH if you don’t need it.
  • Use a separate strong password for any admin account you expose to the network.
  • Consider full-disk encryption so data is safe when the machine is powered off.

Leave a Reply

Your email address will not be published. Required fields are marked *