View previous topic :: View next topic |
Author |
Message |
Spanik l33t
Joined: 12 Dec 2003 Posts: 943 Location: Belgium
|
Posted: Fri Jun 30, 2006 9:03 pm Post subject: locked out of my gentoo pc |
|
|
I wanted to run an "emerge --update system" and found out that 2 packages were blocking each other: pam-login and shadow.
Since I had some "problems" using pam-login when using ssh to my other pc (after I emerged ssh) I tought this might have been the problem. As I removed pam-login from the ssh config, I tought I didn't need it anymore so I ran "emerge --unmerge pam-login". That was yesterday...
Okay, so you can pick yourselves up from the floor and stop laughing. To cut it short, I cannot login to the pc anymore.
Is it enough to boot with the live-cd, chroot into the setup and there run "emerge pam-login" to get it working again, or is there more involved? I would like to be more or less certain what to do before tackling this mess. _________________ Expert in non-working solutions |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Jun 30, 2006 9:14 pm Post subject: |
|
|
Booting the live cd and re-emerging pam-login should do it.
Don't feel too bad. When I was learing Unix (SCO, boo!) many years ago, I once issued the following command at work:
#rm -rf /u4/custom/* bank538
Notice the space between "*" and "bank538". They didn't have a backup policy in place at that time either. I figured I was a goner after just two months on the job. Turns out that the guy who was mentoring me had made a full backup the night before. He said that he just had a feeling... In later years, he pulled a lot of crap, but I always cut him some slack since he had saved my ass.
Live and learn. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
troymc Guru
Joined: 22 Mar 2006 Posts: 553
|
Posted: Fri Jun 30, 2006 9:35 pm Post subject: |
|
|
Actually, you want to emerge shadow.
It is the package that is replacing pam-login, that is why they were conflicting.
troymc |
|
Back to top |
|
|
valkyrite Apprentice
Joined: 19 Sep 2002 Posts: 241
|
Posted: Sat Jul 01, 2006 3:45 am Post subject: |
|
|
But you still require pam-login to log inside the system. Correct me if I am wrong.
unmerge pam-login, emerge shadow, reemerge pam-login.
Use a livecd and chroot to your actual gentoo environment. |
|
Back to top |
|
|
ali3nx l33t
Joined: 21 Sep 2003 Posts: 722 Location: Winnipeg, Canada
|
Posted: Sat Jul 01, 2006 3:48 am Post subject: |
|
|
tiwaris wrote: | But you still require pam-login to log inside the system. Correct me if I am wrong.
unmerge pam-login, emerge shadow, reemerge pam-login.
Use a livecd and chroot to your actual gentoo environment. |
shadow now provides pam-login _________________ Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper! |
|
Back to top |
|
|
Spanik l33t
Joined: 12 Dec 2003 Posts: 943 Location: Belgium
|
Posted: Sat Jul 01, 2006 11:20 am Post subject: |
|
|
Everything ok now. I had a suse partition on the pc and used that instead of a live-cd (couldn't find it). Emerged shadow and with a pass of etc-update I'm back in business.
Thanks! _________________ Expert in non-working solutions |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat Jul 01, 2006 6:36 pm Post subject: |
|
|
Moved from Installing Gentoo to Duplicate Threads.
See here: https://forums.gentoo.org/viewtopic-t-443022.html _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|