The problem of not being able to log in to the centos system locally after installing oracle once

Help netizens install the database and find a problem.

Problem Description:

When using CRT to connect to a remote physical machine, you cannot use the graphical interface to install the database. Go to the remote physical machine and find that you cannot log in and enter the interface. (non-account, password problem)

But CRT can still log in

Specifically:

Enter username: root

Password: *********** Enter

No response, go back to username and password

To view the server security log remotely:

vi / var / log / secure

The following errors were found:

Oct 18 08:45:41 server1 login: PAM unable to dlopen(/lib/security/pam_limits.so)

Oct 18 08:45:30 server1 login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]

Oct 18 18:45:12 server1 login: PAM adding faulty module: /lib/security/pam_limits.so

……

fainted!

At this time, I remembered that my operating system is 64-bit and should visit /lib64/security/pam_limits.so. It is estimated that the previous colleague copied the installation file when installing Oracle, which caused the configuration problem in the login.

solve:

Edit the login configuration file:

# vi /etc/pam.d/login

turn up

session required /lib/security/pam_limits.so

change into:

session required /lib64/security/pam_limits.so

Save and exit.

The above technology is provided by Chongqing Sizhuang​

Chongqing Sizhuang's April 2018 OCP certification training weekend class is being taught, welcome to contact for an audition! The new OCP weekend class will start on June 2nd, registration is hot, and places are limited, please book in advance! For more details, visit the Sizhuang website to consult online customer service.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324962137&siteId=291194637