Open klequis opened 3 years ago
Using Ubuntu 22.04 the method below no longer works.
However, if you use sudo passwd <username> and ignore the message about 'bad password' it will set the password.
sudo passwd <username>
from: How to set a short password on Ubuntu?
Bring up a terminal and edit /etc/pam.d/common-password
Change this line:
password [success=1 default=ignore] pam_unix.so obscure sha512
to:
password [success=1 default=ignore] pam_unix.so obscure sha512 minlen=4
Password also need a certain amount of complexity, as specified by the obscure parameter above.
password [success=1 default=ignore] pam_unix.so minlen=2 sha512
removes that check also.
This all presupposes that you think this is wise.
See man pam_unix
However, if you use
sudo passwd <username>
and ignore the message about 'bad password' it will set the password.Old - doesn't work anymore
from: How to set a short password on Ubuntu?
Bring up a terminal and edit /etc/pam.d/common-password
Change this line:
to:
Password also need a certain amount of complexity, as specified by the obscure parameter above.
removes that check also.
This all presupposes that you think this is wise.
See man pam_unix