Created
January 31, 2024 04:29
-
-
Save ThinGuy/3216e5471025ffd8f1ebbcdbb7d501f2 to your computer and use it in GitHub Desktop.
Fix: BAD PASSWORD: The password contains the user name in some form.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Work around for when you want/need your password to contain part of your username | |
# Disable the pwquality profile in PAM | |
sudo pam-auth-update --disable pwquality | |
# Change your password | |
echo 'ubuntu:Ubuntu123!'|sudo chpasswd -s | |
# Enable the pwquality profile in PAM | |
sudo pam-auth-update --enable pwqualit |
Author
ThinGuy
commented
Jan 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment