What should I do if I still cannot log in after entering the correct password under centos?

王林
Release: 2020-03-27 17:33:47
Original
11567 people have browsed it

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
Copy after login

Search

session required /lib/security/pam_limits.so
Copy after login

Modify to

session required /lib64/security/pam_limits.so
Copy after login
Copy after login

If the statement cannot be found, add the following statement to the last line:

session required /lib64/security/pam_limits.so
Copy after login
Copy after login

Then save and return to the command line, enter the restart command:

shutdow -r now
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!