Home > Article > Operation and Maintenance > What should I do if I still cannot log in after entering the correct password under centos?
Problem:
I still cannot log in even after entering the correct username and password.
Solution:
1. Enter single-user mode to reset password
When booting, press the 'E' key (countdown Before ending) Enter the interface
Select the second item, press the 'E' key to enter again
Add '1' (space 1) in the last line
Enter key to save , return to the interface, press the 'B' key to reboot the system
2. Configuration file
Enter the command in single-user mode:
vi /etc/pam.d/login
Search
session required /lib/security/pam_limits.so
Modify to
session required /lib64/security/pam_limits.so
If the statement cannot be found, add the following statement to the last line:
session required /lib64/security/pam_limits.so
Then save and return to the command line, enter the restart command:
shutdow -r now
Recommended tutorial: centos tutorial
The above is the detailed content of What should I do if I still cannot log in after entering the correct password under centos?. For more information, please follow other related articles on the PHP Chinese website!