In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.