You are not logged in.

#1 2012-06-15 07:51:30

esa-petri
Member
Registered: 2012-03-01
Posts: 8

[SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

After upgrading pam to newest version i have been unable to login to my arch box
(run as server so reinstaling arch is big no no(but no one gives here such solutions anyway))
, and fighting whit this error

error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory


I have chrooted multible times,
I have run mkinitcpio -p linux multiple times,
i have reinstaled pam whit pacman and tried to downgrade it.
i have reinstaled shadow, pambase, bash.
I have run ldconfig.
And as you can guess none worked.

I am thinking that libpam is somehow realy missing but no idea how to fix that, as pacman reinstallation should fix that.

So any ideas where to look for solution. Like can I allow automatic login from chroot or something similar

thank you before hand

Last edited by esa-petri (2012-06-17 16:28:13)

Offline

#2 2012-06-15 07:59:50

progandy
Member
Registered: 2012-05-17
Posts: 5,199

Re: [SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

Is the library really missing? It should be located in /usr/lib/libpam.so.0


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2012-06-17 11:09:06

esa-petri
Member
Registered: 2012-03-01
Posts: 8

Re: [SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

Pam should be okay as
ls -la shows
/usr/lib/libpam.so.0 to linked libpam.so.0.42.4(numbers wrong but you get idea)
libpamc linked in similar way libpamc...
libpam_misc linked same way libpam_misc

permision of those binaries is
-rwxr-xr-x

and cat shows there is some binary inside those

also in chrooted envoirment yaourt stops working if you remove those libaries.
and as it works just fine whit them there they should be intact.

i am wondering what other libaries are needed when runing login, as something else could be broken like ldconfig, touch, or ...(i dont know)

Last edited by esa-petri (2012-06-17 11:45:46)

Offline

#4 2012-06-17 11:29:55

esa-petri
Member
Registered: 2012-03-01
Posts: 8

Re: [SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

and error comes when you try login to arch box. like this
"

Arch Linux 3.3.8-1 ARCH @ (none) (tty1) (users:0)

(none) login:

"
and an after every username  filling + enter it shows:
"

Arch Linux 3.3.8-1 ARCH @ (none) (tty1) (users:0)

(none) login:
/bin/login: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory

"
thougt that text stays only for millisecond so you need to cause respamming limit to lauch, in oder see it.

So error might have some thing to do whit hostname.
thought my hosts and host.conf do exsist.

Last edited by esa-petri (2012-06-17 15:20:31)

Offline

#5 2012-06-17 13:26:46

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

Offline

#6 2012-06-17 14:57:54

esa-petri
Member
Registered: 2012-03-01
Posts: 8

Re: [SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

thank you now i know what I did wrong(never run pacman -Sy "something"). And that my searhing from forum wasn't enought.
but do I fix this by runing

pacman -r /mnt -Syu

and isn't that same if I chroot to /mnt and run pacman -Syu.
which didn't fix sitsuation. At the moment system is update but not booting.

could I fix sitsuation by running whole system update like
https://bbs.archlinux.org/viewtopic.php?pid=263443

And yes I was missing usr hook from /etc/mkinitcpio.conf

Last edited by esa-petri (2012-06-17 16:24:25)

Offline

#7 2012-06-17 16:26:40

esa-petri
Member
Registered: 2012-03-01
Posts: 8

Re: [SOLVED]/bin/login: error while loading shared libraries: libpam.so.0

ok proplem fixed. thank you so much.

half proplem was usr hook missing
and other half was doing pacman -Syu

learned: read stikys from forums,  subcride to arch anouncment and read pacman log
(TODO learn write)
https://bbs.archlinux.org/viewtopic.php?id=57205

Last edited by esa-petri (2012-06-17 16:29:04)

Offline

Board footer

Powered by FluxBB