Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Messed up Pam upgrade, now can't su and....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
somelady
n00b
n00b


Joined: 27 Oct 2007
Posts: 3

PostPosted: Sat Oct 27, 2007 3:03 am    Post subject: [solved] Messed up Pam upgrade, now can't su and.... Reply with quote

So this is totally a why you shouldn't upgrade while tired, but hopefully it's salvageable.... I ran my weekly emerge -Dua system, which complains about the pam upgrades, pointing to the guide. I go to the guide, and run
qfile -o /etc/pam.d/*
as instructed, which showed like two things. I keep reading, seeing how you can probably get rid of that stuff, and not thinking I do a
rm /etc/pam.d/*
and then the doom starts creeping in.... So I can't su, I'm not sure what else to check. I hadn't done any custom configuration or anything, but I'm not sure what all I need to remerge before I log out and get screwed.... Or just restart something? Please help.


Last edited by somelady on Sat Oct 27, 2007 11:05 am; edited 1 time in total
Back to top
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Sat Oct 27, 2007 3:24 am    Post subject: Reply with quote

Can’t help you with your exact problem but keep in mind: A live cd can help in these cases. If you can't login as root just boot from live cd, chroot into your gentoo install and fix the problem. That’s at least better than starting from scratch.

Probably re-emerging pam and some other packages from the chroot will fix your problem as it will re-install the config files into /etc/pam.d/. To get the complete(?) list of packages which install into /etc/pam.d/ do a
Code:
equery belongs /etc/pam.d
and write all these down.

HTH
_________________
Please add [SOLVED] to your message title if your problem is solved.

Death to all blobs!
Back to top
View user's profile Send private message
somelady
n00b
n00b


Joined: 27 Oct 2007
Posts: 3

PostPosted: Sat Oct 27, 2007 11:02 am    Post subject: Reply with quote

Thanks. Having slept on it now, some more info:
-I have installed the new pam, that's why a lot of early info is missing, I hoped reinstalling pam would fix it, and it overwrote that stuff.
-When I say "can't su" I mean it skips directly to authentication failure, not even asking for password. The same happens if I switch virtual terminals and try to log in as my normal user
-I tried using passwd on both accounts and get: Authentication token manipulation error
-I ran the equery and got:

sys-libs/pam-0.99.8.1-r1 (/etc/pam.d)
sys-process/vixie-cron-4.1-r10 (/etc/pam.d)
net-mail/mailbase-1 (/etc/pam.d)
dev-libs/cyrus-sasl-2.1.22-r2 (/etc/pam.d)
x11-apps/xinit-1.0.4 (/etc/pam.d)
net-dialup/ppp-2.4.4-r13 (/etc/pam.d)
sys-apps/shadow-4.0.18.1-r1 (/etc/pam.d)
net-fs/samba-3.0.24-r3 (/etc/pam.d)
net-misc/netkit-rsh-0.17-r8 (/etc/pam.d)
net-misc/openssh-4.7_p1-r1 (/etc/pam.d)
net-print/cups-1.2.12-r1 (/etc/pam.d)
net-ftp/ftpbase-0.01 (/etc/pam.d)
kde-base/kdebase-pam-7 (/etc/pam.d)

working on this list now.
Back to top
View user's profile Send private message
somelady
n00b
n00b


Joined: 27 Oct 2007
Posts: 3

PostPosted: Sat Oct 27, 2007 11:05 am    Post subject: Reply with quote

And remerging shadow has at least made me able to login/su again so I can go on to the rest of the list in peace. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum