stuck and loop after login in with root, can not input password

General support questions
Post Reply
lennonmwy
Posts: 2
Joined: 2019/05/21 04:14:24

stuck and loop after login in with root, can not input password

Post by lennonmwy » 2019/05/21 04:23:43

Our server lost lib64 for some reason, It can't startup. So I add a softlink for lib64 using a ubuntu usb system.
Then our server can start, but when I login, It stuck several seconds after I input any username. Then flash and return the "login:". I can't get the "passwd:"
I don't have the graphic environment. Only the command line.
Does anyone know how to solve this problem? Thanks a lot!

aks
Posts: 2806
Joined: 2014/09/20 11:22:14

Re: stuck and loop after login in with root, can not input password

Post by aks » 2019/05/21 16:13:48

At a guess, your PAM stack doesn't have all the libraries it needs.
So I add a softlink for lib64 using a ubuntu usb system
Don't do that - use a CentOS machine of the same version.

lennonmwy
Posts: 2
Joined: 2019/05/21 04:14:24

Re: stuck and loop after login in with root, can not input password

Post by lennonmwy » 2019/05/21 16:50:51

aks wrote:
2019/05/21 16:13:48
At a guess, your PAM stack doesn't have all the libraries it needs.
So I add a softlink for lib64 using a ubuntu usb system
Don't do that - use a CentOS machine of the same version.
thank you for the reply, but i link the /lib64 to /usr/lib64 which is on the original centos7。why could it miss the library?

User avatar
TrevorH
Forum Moderator
Posts: 26331
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: stuck and loop after login in with root, can not input password

Post by TrevorH » 2019/05/21 17:47:49

If the symlink for /lib64 -> /usr/lib64 was missing then you should probably also check that the symlinks for /lib -> /usr/lib and sbin -> usr/sbin and bin -> usr/bin are all in place and correct. And then find out why they disappeared and who was responsible.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

aks
Posts: 2806
Joined: 2014/09/20 11:22:14

Re: stuck and loop after login in with root, can not input password

Post by aks » 2019/05/23 18:11:19

You are in for a while world of pain.
why could it miss the library?
What does the pam stack want and what is on disk are they the same (extensive experience suggest not).

Post Reply