X64 Linux cannot be resolved from local character interface login

Source: Internet
Author: User

X64 Linux cannot be landed from a local character interface often strange things happen. In other words, I have a server in charge of squid, remote landing good has been her good. Today to change the gateway, so I took a monitor on-premises operation. When you have finished entering the username root password*Enter Yo, again let me lose again?? Well, I lost again, or this! Dead and Alive on account authentication interface landing not on. Ah, the server has been hacked?? Log in with a laptop but everything is fine. To view the server security log:Tail- -/var/log/Secure found the following error: May2  -: $: AServer1Login: PAM Unable to Dlopen (/lib/security/pam_limits.so) may2  -: $: AServer1Login: PAM [ERROR:/lib/security/pam_limits.so:wrong ELF CLASS:ELFCLASS32] May2  -: $: AServer1Login: PAM Adding faulty module:/lib/security/pam_limits.so May2  -: $: $Server1Login: Pam_unix (Login: AUTH): Authentication failure;logname=login uid=0Euid=0Tty=tty1 ruser= rhost= User=root May2  -: $: $Server1Login: FAILED LOGIN1From (NULL) for root, authentication failure may2  -: $: toServer1Login: FAILED LOGIN2From (NULL) for root, authentication failure may2  -: $: theServer1Login: Pam_unix (Login: session): Session opened forUser root by LOGIN (uid=0) may2  -: $: theServer1Login: Module is unknown because the operating system is RedHat AS5.3Prior experience with X64 suggests that this is likely to be related to the storage path of the X64 class file. So edit the login configuration file: Vim/etc/pam.d/Logintake the next line of the session required/lib/security/Pam_limits.so modified to: Session required/lib64/security/pam_limits.so Save and exit. Try to log in locally and succeed! The log didn't get any more errors. 

Reference articles

Modified/etc/pam.d/login File

#%pam-1.0Auth [User_unknown=ignore Success=ok Ignore=ignore default=Bad ] Pam_securetty.soauth include system-Authaccount required pam_nologin.soaccount include system-Authpassword include system-auth# pam_selinux.so Close should be the first session rulesession required pam_selinux.so closesession requ  ired pam_loginuid.sosession Optional pam_console.so# pam_selinux.so Open should only being followed by sessions to Be executedinchThe user contextsession required pam_selinux.so opensession required Pam_namespace.sosession optiona L pam_keyinit.so Force revokesession include system-Auth-Session optional Pam_ck_connector.sosession required pam_limits.sosession required/lib64/security/pam_limits.so

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.