Cause | Error Prompt | Solution |
The username does not exist. |
| The entered username does not exist. Please confirm whether the entered username is correct. |
The chpasswd command is not found. |
| If the instance can still be logged in to normally, log in to the instance and execute command find -type f -name "chpasswd" to check whether chpasswd exists.If the instance cannot be logged in to normally, you need to enter the rescue mode to check for exceptions in the chpasswd system file. |
cannot lock /etc/passwd |
| Log in to the instance and execute the following command for recovery. If the instance cannot be logged in to normally, it is recommended that you restart the instance. rm /etc/passwd.lock rm /etc/shadow.lock |
chpasswd: cannot open /etc/shadow |
| Log in to the instance and execute chattr +i /etc/shadow for repair. If you are unable to log in to the instance, you need to enter the rescue mode and execute chattr +i /etc/shadow following chroot for repair. |
Errors are related to PAM authentication failed and other PAM related issues |
| Log in to the instance and go to cd /etc/pam.d/ to check if the corresponding configuration has been modified. If you do not know how to modify it, you can back it up first and then copy the public image configuration. If you cannot log in to the instance, you need to enter the rescue mode for repair. |
set-localuser Admin -AccountExpires "2099/6/6 20:53:35"
The user name could not be found.More help is available by typing NET HELPMSG 2221.
The password does not meet the password policy requirements. Check the minimum password length, password complexity, and password history requirements.More help is available by typing NET HELPMSG 2245.
secpol.msc
and press Enter to open Local Security Policy. Expand Account Policies > Password Policy. Then, you can see that Password must meet complexity requirements is enabled by default.
Was this page helpful?