Get the App
SLTechnology News&Howtos  ›  Database  › 

Linux native root account cannot be logged in, but remote ssh login can be handled.

Shulou Source: shulou.com Published: 2022-05-31 14:31:29 10月04日 Update

This article is about how linux's native root account cannot be logged in but can be logged in to remote ssh. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Fault state

A.linux native root account cannot be logged in (even if root and password are correct, but can be logged in using remote ssh software)

b. View / var/log/secure login log (prompt that pam_limits.so cannot be found, which is a module required by oracle)

Jan 5 15:33:50 server181 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

Jan 5 15:33:50 server181 login: PAM adding faulty module: / lib/security/pam_limits.so

Jan 5 15:33:59 server181 login: pam_unix (login:session): session opened for user root by LOGIN (uid=0)

Jan 5 15:33:59 server181 login: Module is unknown

Jan 5 15:34:58 server181 sshd [2096]: Accepted publickey for rfadmin from 10.100.40.124 port 64497 ssh3

Jan 5 15:34:58 server181 sshd [2096]: pam_unix (sshd:session): session opened for user rfadmin by (uid=0)

Jan 5 15:36:11 server181 su: pam_unix (su-l:session): session opened for user root by rfadmin (uid=501)

The following is the configuration required by oracle (/ etc/pam.d/login)

Session required / lib/security/pam_limits.so

Session required pam_limits.so

two。 Check whether the pam_limits.so file exists in the system

[root@server181 ~] # find /-name pam_limits.so / lib/security/pam_limits.so found that the pam_limits.so file is not in the directory specified by oracle

3. Make a soft link to the pam_limits.so file

Ln-s / lib64/security/pam_limits.so / lib/security/ Thank you for your reading! About "Linux native root account can not log in but remote ssh login how to deal with" this article is shared here, I hope the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Tags: Login file account local machine content more article good practical password situation fault article log module status directory look knowledge system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information OPPO Reno Microsoft Docker NVidia