LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   /bin/login: error while loading shared libraries: libpam.so.0? (http://www.linuxquestions.org/questions/slackware-14/bin-login-error-while-loading-shared-libraries-libpam-so-0-a-751385/)

quanta 08-31-2009 12:21 AM

/bin/login: error while loading shared libraries: libpam.so.0?
 
Hi all,

I am using Slackware 12.2 at runlevel 4. I cannot login when switch to runlevel 1 or runlevel 3. After typing username and password, the following error appear:
Quote:

login[2996]: segfault at ... ip ... sp ... error 6 in login
(I don't remember the above blanks because I didn't take note)

and login prompt appear again.

Looking at /var/log/secure:
Quote:

Aug 31 09:44:43 localhost login: PAM unable to dlopen(/lib/security/pam_cracklib.so): /lib/security/pam_cracklib.so: cannot open shared object file: No such file or directory
Aug 31 09:44:43 localhost login: PAM adding faulty module: /lib/security/pam_cracklib.so
The reason is I installed Linux-PAM before and lack of pam_cracklib.so (don't know why). Uninstall it (Linux-PAM) and try switch to runlevel 1 with "telinit 1" again but I still cannot login. After type the username I got:
Quote:

/bin/login: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory
and login prompt appear again.

How do I completely uninstall PAM on Slack and be able login to single-user mode (or runlevel 3)?

Thanks in advance.

rworkman 08-31-2009 12:41 AM

You just learned an important lesson. :-)

You'll need to boot the installer, mount it to /cdrom, mount the installed system to /mnt, and then do this:
Code:

ROOT=/mnt upgradepkg /cdrom/.../shadow-4.0.3-*.t?z

quanta 08-31-2009 01:13 AM

Quote:

Originally Posted by rworkman (Post 3663483)
You just learned an important lesson. :-)

You'll need to boot the installer, mount it to /cdrom, mount the installed system to /mnt, and then do this:
Code:

ROOT=/mnt upgradepkg /cdrom/.../shadow-4.0.3-*.t?z

I understand what you mean but notice that I am still able to login to runlevel 4 (GUI) normally.

-----------------------------------------------------------------------------------------
Edited: Thank you. I tried upgrading shadow package with --reinstall option from CD-ROM and now I am able to login single-user mode.

But, I don't understand the differences in shadow package's effects when running at runlevel 4 and runlevel 1?

rworkman 08-31-2009 08:48 AM

The graphical desktop managers don't use /bin/login directly.


All times are GMT -5. The time now is 06:58 PM.