Centos6.5 when you log in, cue module is unkown

Source: Internet
Author: User

A period of time, because the work needs to install a Centos6.5 on the physical machine, but, for a period of time, found to log in, no matter how to login, and do not prompt the user name or password error. At one point, I thought it was in profile and. BASHRC or. Bash_profile set the logout command, then into single-user mode, a variety of views, also did not find logout command. So, staring at the screen for a while, found that the correct user name and password after the Flash, but, particularly fast, not many times, unrecognized. After a fine look, found that: Module is unkown, too good, to find a way to solve the problem, there is a hint that the information is half solved.

So, looking for Niang:

Enthusiastic netizens to provide solutions to the problem is this:

1. Enter single user mode

2, view the/var/log/secure file, log as follows:

Mar 11:05:06 Testopenfire Login:pam Unable to Dlopen (/lib/security/pam_limits.so):/lib/security/pam_limits.so: Cannot open shared object File:no such file or directory
Mar 11:05:06 testopenfire login:pam Adding faulty module:/lib/security/pam_limits.so
Mar 11:05:10 testopenfire login:pam_limits (login:session): Unknown limit type ' herd '
Mar 11:05:10 testopenfire Login:pam_unix (login:session): Session opened for user root by login (uid=0)
Mar 11:05:10 Testopenfire Login:module is unknown
Mar 11:05:21 Testopenfire Login:pam Unable to Dlopen (/lib/security/pam_limits.so):/lib/security/pam_limits.so: Cannot open shared object File:no such file or directory

It means Pam unable to dlopen/lib/security/pam_limits.so this file, so go to/lib/security/down to see if there is pam_limits.so this file, sure enough.

3, in the/etc/pam.d/login, inside the configuration information is as follows:

Auth [User_unknown=ignore success=ok ignore=ignore Default=bad] pam_securetty.so
Auth include System-auth
Account Required Pam_nologin.so
Account include System-auth
Password include System-auth
# pam_selinux.so Close should be the first session rule
Session Required Pam_selinux.so Close
Session Required Pam_loginuid.so
Session Optional Pam_console.so
# pam_selinux.so Open should only is followed by sessions to being executed in the user context
Session Required Pam_selinux.so Open
Session Required Pam_namespace.so
Session optional pam_keyinit.so Force revoke
Session include System-auth
-session Optional pam_ck_connector.so
Session required/lib/security/pam_limits.so
~
~

After the user pointing, the last line commented out or changed to (search the next, 64-bit system in the LIB64 directory):/lib64/security/pam_limits.so, save, restart the system.

4, with the original user name and password login, perfect login!!

It is said that SSH login is not a problem, but, my machine IP has changed, can only log on to the machine, so it is necessary to solve this problem. But, when I used it, I didn't feel it, and I didn't know why I couldn't use it all of a sudden. Fortunately, the problem is solved. It's perfect!!

Centos6.5 when you log in, cue module is unkown

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.