View previous topic :: View next topic |
Author |
Message |
bur Apprentice
Joined: 20 Feb 2004 Posts: 229
|
Posted: Thu Jun 22, 2006 12:26 am Post subject: |
|
|
If you accidently unmerged pam-login w/o merging shadow before logging out, here's what I did to solve the problem:
Cannot login - password isn't asked for [solved]
There's a step-by-step what I did. Only thing that might need to be adjusted is how to start your internet connection. I do this by net.eth0 start, replace if necessary.
Last edited by bur on Thu Jul 06, 2006 3:24 am; edited 1 time in total |
|
Back to top |
|
|
Pat-rizio n00b
Joined: 05 Apr 2004 Posts: 69
|
Posted: Thu Jun 22, 2006 7:31 am Post subject: |
|
|
Wow, thank you so much bur, you gave me the hint to find the solution to fix my problem.
I made the steps you suggested, I emerged shadow, but at first I couldn't log in after reboot...
So I entered my box a second time using your steps, then I changed all my user account's password using passwd command.
And voilà... now I can login again in box!
I think that when a week ago I unmerged pam-login then I reboot without emerging shadow, my system lost user accounts password or something like this... Now changing them using passwd renew my system!
Thanks to all you guys! |
|
Back to top |
|
|
Joo n00b
Joined: 08 Sep 2005 Posts: 16 Location: Texas
|
Posted: Fri Jun 23, 2006 12:43 am Post subject: |
|
|
Thanks for the tip.
Joo. |
|
Back to top |
|
|
abbas n00b
Joined: 24 Jun 2006 Posts: 5
|
Posted: Sat Jun 24, 2006 12:37 pm Post subject: emerge --update --deep world (error) |
|
|
Hi.
Sorry, I am new to Gentoo.
I am trying to update my system.
running emerge --update --deep world (accord to help) will update system, but I get the following error:
Code: |
# emerge --update --deep world
Calculating world dependencies... done!
!!! Error: the sys-apps/pam-login package conflicts with another package;
!!! the two packages cannot be installed on the same system together.
!!! Please use 'emerge --pretend' to determine blockers.
|
What does that mean???
Thank you.
Abbas. |
|
Back to top |
|
|
tobimat80 Apprentice
Joined: 27 May 2003 Posts: 272 Location: Trier - Germany
|
Posted: Sat Jun 24, 2006 12:54 pm Post subject: |
|
|
Hi!
I would say you do exactly what emerge wants from you: use the "--pretend" option to identify the blocker (it is indicated by a "b")
Cheers,
tobias _________________ Wer Rechtschreibfehler findet, darf sie behalten und auf DVD brennen! |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sat Jun 24, 2006 12:58 pm Post subject: |
|
|
Merged above two posts.
abbas, you need to umerge pam-login and emerge shadow. |
|
Back to top |
|
|
bur Apprentice
Joined: 20 Feb 2004 Posts: 229
|
Posted: Sat Jun 24, 2006 7:30 pm Post subject: |
|
|
It is important that after unmerging pam-login you emerge shadow _before_ logging off. Otherwise your login prompt will be broken. |
|
Back to top |
|
|
frankpettersen n00b
Joined: 08 Jun 2004 Posts: 7
|
Posted: Tue Jun 27, 2006 11:17 am Post subject: |
|
|
Code: |
emerge -C pam-login && emerge -1 shadow
|
Just a question: Why oneshotting the shadow build? Won't that make problems with potensial future updates? |
|
Back to top |
|
|
FRiO n00b
Joined: 30 Jun 2003 Posts: 45
|
Posted: Mon Jul 03, 2006 12:53 am Post subject: |
|
|
Just on this topic - I unmerged pam-login started my emerge -uD world, figuring if stuff was broken I'd re-emerge it when the emerge was completed. I ran the emerge in a screen session.
I then stupidly forgot what I had done and logged off (as X updates had to occur so I figured it'd be smart to have X closed... *sigh*). Anyway, my question is: when the emerge completes, will I be able to log in again? Or will I have to recover via the LiveCD route? |
|
Back to top |
|
|
bur Apprentice
Joined: 20 Feb 2004 Posts: 229
|
Posted: Mon Jul 03, 2006 3:24 am Post subject: |
|
|
When emerge is still running, you're not completely logged off. If you want to be 100% safe, cancel the emerge (preferably between two packages, so no compilation work gets lost) and run "emerge shadow". After that you can reboot and will find the login prompt working just fine.
BTW, no need to shutdown X (or any other program) when updating. All files are updated in the background and the next time you start X (or the updated program) the new version will be used. |
|
Back to top |
|
|
FRiO n00b
Joined: 30 Jun 2003 Posts: 45
|
Posted: Mon Jul 03, 2006 3:43 am Post subject: |
|
|
Emerge was running in a (now-detached) screen session . I'll wait till the fan on the laptop buzzes down (the only load indicator I have now!) and then try logging in again.
And yeah, I didn't figure there was a need to close X, but I'm on a month of uptime on it now so I figured it'd be for the best to restart X at some point :p. |
|
Back to top |
|
|
fr3akX n00b
Joined: 17 Oct 2005 Posts: 31 Location: LV
|
Posted: Mon Jul 03, 2006 5:10 am Post subject: |
|
|
I suggest to downgrade shadow and pam-login, this works for me
Code: |
emerge -Ca shadow pam-login
emerge -av =shadow-4.0.14-r1 |
This will merge shadow-4.0.14-r1 and sys-apps/pam-login-4.0.14 _________________ http://chown.lv |
|
Back to top |
|
|
bur Apprentice
Joined: 20 Feb 2004 Posts: 229
|
Posted: Wed Jul 05, 2006 11:08 am Post subject: |
|
|
I don't think downgrading is a good idea. Why not unmerge pam-login and than emerge the new shadow package? |
|
Back to top |
|
|
TheCarNinja Tux's lil' helper
Joined: 16 Sep 2003 Posts: 124 Location: New York
|
Posted: Wed Jul 05, 2006 11:22 pm Post subject: |
|
|
Ditto! This helped me out as well. Kudos! _________________ TheCarNinja
--
~Adopt an unanswered post today!~
Life is more fun sideways. |
|
Back to top |
|
|
FRiO n00b
Joined: 30 Jun 2003 Posts: 45
|
Posted: Thu Jul 06, 2006 4:04 am Post subject: |
|
|
For the record, when the emerge finished my login worked just fine .
Cheers screen! |
|
Back to top |
|
|
laika n00b
Joined: 25 Jul 2002 Posts: 30 Location: Plano, TX
|
Posted: Mon Jul 10, 2006 3:08 am Post subject: Circular BS |
|
|
This is EXACTLY this sort of CRAP that is leading me after 6 years of being a hard-core gentoo user to switch completely over to debian. I'm fixing this one last issue, then adios super-unstable portage tree... sheesh.. you would've thought in all this time they could have introduce a reasonable stable branch. |
|
Back to top |
|
|
kg4ysy Apprentice
Joined: 08 Jul 2006 Posts: 183 Location: North Carolina
|
Posted: Tue Jul 11, 2006 5:20 pm Post subject: |
|
|
This one should definately stay sticky...I can't believe I found a solution so quickly
thx
--Jim |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Tue Jul 11, 2006 6:40 pm Post subject: |
|
|
Pat-rizio wrote: | Sorry, I mistook writing the post. Anyway
it is the same to do
The difference is only that the first entry shows even the changelog entries for packages that will be upgraded during the emerge process, right? |
It's [code]emerge -1 shadow[code]
that's the number one. "-1" is short for "--oneshot" which tells emerge to compile and install the package but not put it in the world file.
So like if you were trying to fix a package that's already part of your system profile you wouldn't need it to be in the world file as well or if it's already a dependency of something in world. |
|
Back to top |
|
|
snookie n00b
Joined: 14 Jul 2006 Posts: 2
|
Posted: Fri Jul 14, 2006 6:06 pm Post subject: |
|
|
emerge -C pam-login && emerge -1 shadow
Worked for me, thank you so much. |
|
Back to top |
|
|
bluni n00b
Joined: 27 Jan 2006 Posts: 29
|
Posted: Tue Jul 18, 2006 5:22 pm Post subject: |
|
|
I have a headless file server stored away in my basement. SSH is my only means of running emerge on that machine (without a lot of work to get a monitor and a keyboad back there ). Will I still be able to perform
Code: | emerge -C pam-login && emerge -1 shadow |
over ssh logged in as root?
Thanks,
Brian |
|
Back to top |
|
|
bluni n00b
Joined: 27 Jan 2006 Posts: 29
|
Posted: Tue Jul 18, 2006 11:10 pm Post subject: |
|
|
Well, I'm doing it now, so I hope it does work .
Brian |
|
Back to top |
|
|
bur Apprentice
Joined: 20 Feb 2004 Posts: 229
|
Posted: Tue Jul 18, 2006 11:45 pm Post subject: |
|
|
You probably know by now anyway, but I think there won't be / was no problem. Unmerging pam-login goes unnoticed until you reboot. So as long as you emerge a substitute for pam-login (like shadow) you should be fine, not matter if accessing via SSH or locally. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Jul 19, 2006 1:05 am Post subject: |
|
|
frankpettersen wrote: | Code: |
emerge -C pam-login && emerge -1 shadow
|
Just a question: Why oneshotting the shadow build? Won't that make problems with potensial future updates? |
It's part of the system profile. If you don't oneshot it, shadow gets put in world even though it's not needed. |
|
Back to top |
|
|
bluni n00b
Joined: 27 Jan 2006 Posts: 29
|
Posted: Wed Jul 19, 2006 3:36 am Post subject: |
|
|
bur wrote: | You probably know by now anyway, but I think there won't be / was no problem. Unmerging pam-login goes unnoticed until you reboot. So as long as you emerge a substitute for pam-login (like shadow) you should be fine, not matter if accessing via SSH or locally. |
I haven't rebooted yet, I guess I'll find out then . Thanks for the answer though.
Brian |
|
Back to top |
|
|
imotlaw n00b
Joined: 25 May 2005 Posts: 38 Location: Washington DC Area
|
Posted: Sat Jul 22, 2006 4:42 pm Post subject: |
|
|
Out of simple curiosity, why do "emerge -1 shadow"? I realize (or think I realize) that the goal is to be able to do an "emerge -uDvaN world" later on without having to worry about shadow screwing things up, but doesn't it also mean that shadow won't be updated when doing updates to world (I realize I'm saying the same thing twice, but you understand what I mean, hopefully)? |
|
Back to top |
|
|
|