-2

I try to install Ubuntu Desktop 24.04.2. But when I create an user in installation guidance, the user's password is seemingly required to be stronger than 4 digits.

But I want to use 4 digits password.

How I can remove this regulation in the installation step?

(I really don't need the kind of "You should use stronger password" advice.)

3 Answers3

1

A normal user can't set weak password using passwd, but root can. Therefore, to set a weak password for jdoe user, you could run:

  • If identified as root (e.g., through sudo -s):

    passwd jdoe
    
  • If idenfied as a user belonging to the sudo group (see the result of the groups command):

    sudo passwd jdoe
    

Remark: Setting a weak password is probably not the best approach in your case. Indeed, desktop managers (e.g., lightdm, sddm, gdm3) can enable auto-login. Thus, if you are the only person that physically uses your computer, you could keep a strong password without having to enter your password when you start Ubuntu.

0

If you install, using a password, once you are in to the system start a shell and then change the password with passwdand change as required.

Jon Tucker
  • 117
  • 6
0

To remove password complexity requirements when installing Ubuntu 24.04.2, you can modify the configuration used by libpam-pwquality.

When you install the package libpam-pwquality (using sudo apt install libpam-pwquality), it generates a /etc/security/pwquality.conf configuration file.

You can customize or disable password complexity by editing this file.

Rajaram
  • 21