LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-03-2012, 11:37 AM   #1
chekhov_neo
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 2
[CentOS] Unable to login: libpam.so.0 not found


Hello,

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:

Code:
error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory
Is it possible to solve this issue without re-installing the OS? I tried to boot using a CentOS livecd iso on an USB stick and it threw the following error while booting:

Code:
-----------------------------------------------
WARNING: Cannot find root file system!
-----------------------------------------------

Create symlink /dev/root and then exit this shell to continue the boot sequence.

bash-3.2#
I tried creating the symbolic link using the command:

Code:
ln -s /dev/sda /dev/root
This too didn't work.

I'm in a pickle. Please help! Thanks!
 
Old 04-03-2012, 12:01 PM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

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.



good luck

Last edited by lithos; 04-03-2012 at 12:13 PM.
 
1 members found this post helpful.
Old 04-03-2012, 12:57 PM   #3
chekhov_neo
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by lithos View Post
Hi,

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.



good luck
Thank you for your response! Let me go through the useful links that you have provided.
 
Old 04-03-2012, 07:35 PM   #4
chekhov_neo
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 2
Problem Solved!

Hi Lithos,

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.

Regards,
chekhov_neo
 
Old 04-04-2012, 01:52 AM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
That's great and thanks for reporting back the solution.

Best regards.
 
  


Reply

Tags
cent


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Centos 5.4 Issue: "CentOS CD Not found in any of the media drives. Please i g.navink Red Hat 1 04-07-2010 04:12 PM
[SOLVED] /bin/login: error while loading shared libraries: libpam.so.0? quanta Slackware 3 08-31-2009 08:48 AM
Dovecot installation - libpam not found onik Linux - Software 4 06-24-2008 05:09 PM
SElinux Disaster / Can't Login / X11 Blocks Libpam.so tarek_taha Fedora 5 06-08-2006 08:29 AM
libpam.so.0 no found! vbbjq Slackware 3 08-03-2004 08:05 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration