You are not logged in.

#1 2009-01-30 20:31:10

The_Baron
Member
Registered: 2009-01-10
Posts: 23

System upgrade froze on pam now no login

Hello, I went into terminal, typed in "sudo pacman -Syu" during the update my system froze when upgrading pam. Now I cant login and get this message:

/bin/login : error while loading share libraries : /lib/libpam.so.0 : file too short

I'm running Arch64

Please help!
Thanks smile

Offline

#2 2009-01-30 23:09:11

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: System upgrade froze on pam now no login

you need to install pam package, if you have no /lib/libpam.so.0. Check if you have pam installed:

pacman -Ql | grep /lib/libpam.so.0

Last edited by ahcaliskan (2009-01-30 23:11:55)

Offline

#3 2009-01-31 00:15:52

The_Baron
Member
Registered: 2009-01-10
Posts: 23

Re: System upgrade froze on pam now no login

How can I do that if I cant login?

Thanks

Offline

#4 2009-01-31 00:26:58

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: System upgrade froze on pam now no login

Boot from an arch installer but do not install anything. Mount your archlinux partition, and copy the pam package files to your filesystem. I recommend using arch installer 2009.01(beta3):

http://dev.archlinux.org/~aaron/archiso/

/etc/fstab

Last edited by ahcaliskan (2009-01-31 00:48:25)

Offline

#5 2009-01-31 16:06:35

The_Baron
Member
Registered: 2009-01-10
Posts: 23

Re: System upgrade froze on pam now no login

How would I get my details back into the libpam files?
I only get a "login incorrect" error now

Thanks!

Offline

#6 2009-01-31 16:23:21

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: System upgrade froze on pam now no login

you need to reset the root password. Boot with arch linux installer, and mount your archlinux partition. Edit /etc/shadow and delete the crypted password:


root:[crypted password]:14227::::::

like this:

root::14227::::::

Reboot and retype your root password with passwd command. Now hopefully you'll login as root, and you'll later on change your user password as well.

Last edited by ahcaliskan (2009-01-31 16:24:58)

Offline

#7 2009-01-31 18:56:42

The_Baron
Member
Registered: 2009-01-10
Posts: 23

Re: System upgrade froze on pam now no login

Sadly didn't work, I'm still receiving "login incorrect"

Thanks

Offline

#8 2009-01-31 19:01:11

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: System upgrade froze on pam now no login

Try this method:

Boot as single user by disabling /etc/rc.conf module gdm/kdm or comment /etc/inittab:

#id:5:initdefault:

Edit your /etc/shadow.
Then replacing root's encrypted password with !. The full line will look something like:

root:!:12345::::::

Arch wiki on disabling root:
http://wiki.archlinux.org/index.php/Dis … bling_root

If that doesn't work, check out your /var/log/messages.log and post it here.

Last edited by ahcaliskan (2009-01-31 19:24:04)

Offline

Board footer

Powered by FluxBB