[CentOS] Unable to login: libpam.so.0 not found
I accidentally removed some important packages while trying to upgrade openSSL in a CentOS enterprise server and now I'm unable to login. Even trying to login as root doesn't work. I'm getting the following error while trying to login:
I'm in a pickle. :( Please help! Thanks!
What I would suggest you is to run off the installation DVD of your system CentOS
and choose "Rescue" at startup (not installation).
Here is the first "guide"
another here and Basic system recovery.
Boot from LiveCD here.
Then hopefully it will mount you your drive partition and you could copy the missing libs where you need.
I don't know how to manually mount drive from rescue mode, that I will leave to more experienced users at this forum.
But it could be the way to rescue your system.
Thank you very much for the useful links! I managed to login to the server in single user mode and fixed the issue by placing the required library files in the /lib64 folder. I had copied the files from another similar server. Now I'm able to login to the server! Learned a couple of things in the process. :)
The reason I got into the mess in the first place was I tried to uninstall openssl using "yum remove" command which unfortunately removed the dependencies too! I need to be careful in the future.
That's great and thanks for reporting back the solution.
|All times are GMT -5. The time now is 09:37 AM.|