Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pam-login blocks shadow
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Thu Jun 22, 2006 12:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Pat-rizio
n00b
n00b


Joined: 05 Apr 2004
Posts: 69

PostPosted: Thu Jun 22, 2006 7:31 am    Post subject: Reply with quote

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! :D

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
View user's profile Send private message
Joo
n00b
n00b


Joined: 08 Sep 2005
Posts: 16
Location: Texas

PostPosted: Fri Jun 23, 2006 12:43 am    Post subject: Reply with quote

Thanks for the tip.

Joo. :D
Back to top
View user's profile Send private message
abbas
n00b
n00b


Joined: 24 Jun 2006
Posts: 5

PostPosted: Sat Jun 24, 2006 12:37 pm    Post subject: emerge --update --deep world (error) Reply with quote

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
View user's profile Send private message
tobimat80
Apprentice
Apprentice


Joined: 27 May 2003
Posts: 272
Location: Trier - Germany

PostPosted: Sat Jun 24, 2006 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Sat Jun 24, 2006 12:58 pm    Post subject: Reply with quote

Merged above two posts.

abbas, you need to umerge pam-login and emerge shadow.
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Sat Jun 24, 2006 7:30 pm    Post subject: Reply with quote

It is important that after unmerging pam-login you emerge shadow _before_ logging off. Otherwise your login prompt will be broken.
Back to top
View user's profile Send private message
frankpettersen
n00b
n00b


Joined: 08 Jun 2004
Posts: 7

PostPosted: Tue Jun 27, 2006 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message
FRiO
n00b
n00b


Joined: 30 Jun 2003
Posts: 45

PostPosted: Mon Jul 03, 2006 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Mon Jul 03, 2006 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
FRiO
n00b
n00b


Joined: 30 Jun 2003
Posts: 45

PostPosted: Mon Jul 03, 2006 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message
fr3akX
n00b
n00b


Joined: 17 Oct 2005
Posts: 31
Location: LV

PostPosted: Mon Jul 03, 2006 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Wed Jul 05, 2006 11:08 am    Post subject: Reply with quote

I don't think downgrading is a good idea. Why not unmerge pam-login and than emerge the new shadow package?
Back to top
View user's profile Send private message
TheCarNinja
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2003
Posts: 124
Location: New York

PostPosted: Wed Jul 05, 2006 11:22 pm    Post subject: Reply with quote

Ditto! This helped me out as well. Kudos!
_________________
TheCarNinja
--
~Adopt an unanswered post today!~
Life is more fun sideways.
Back to top
View user's profile Send private message
FRiO
n00b
n00b


Joined: 30 Jun 2003
Posts: 45

PostPosted: Thu Jul 06, 2006 4:04 am    Post subject: Reply with quote

For the record, when the emerge finished my login worked just fine ;).

Cheers screen!
Back to top
View user's profile Send private message
laika
n00b
n00b


Joined: 25 Jul 2002
Posts: 30
Location: Plano, TX

PostPosted: Mon Jul 10, 2006 3:08 am    Post subject: Circular BS Reply with quote

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
View user's profile Send private message
kg4ysy
Apprentice
Apprentice


Joined: 08 Jul 2006
Posts: 183
Location: North Carolina

PostPosted: Tue Jul 11, 2006 5:20 pm    Post subject: Reply with quote

This one should definately stay sticky...I can't believe I found a solution so quickly

thx

--Jim
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Tue Jul 11, 2006 6:40 pm    Post subject: Reply with quote

Pat-rizio wrote:
Sorry, I mistook writing the post. Anyway
Code:
emerge -l shadow

it is the same to do
Code:
emerge shadow

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
View user's profile Send private message
snookie
n00b
n00b


Joined: 14 Jul 2006
Posts: 2

PostPosted: Fri Jul 14, 2006 6:06 pm    Post subject: Reply with quote

emerge -C pam-login && emerge -1 shadow

Worked for me, thank you so much.
Back to top
View user's profile Send private message
bluni
n00b
n00b


Joined: 27 Jan 2006
Posts: 29

PostPosted: Tue Jul 18, 2006 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
bluni
n00b
n00b


Joined: 27 Jan 2006
Posts: 29

PostPosted: Tue Jul 18, 2006 11:10 pm    Post subject: Reply with quote

Well, I'm doing it now, so I hope it does work ;-).

Brian
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Tue Jul 18, 2006 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Wed Jul 19, 2006 1:05 am    Post subject: Reply with quote

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
View user's profile Send private message
bluni
n00b
n00b


Joined: 27 Jan 2006
Posts: 29

PostPosted: Wed Jul 19, 2006 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message
imotlaw
n00b
n00b


Joined: 25 May 2005
Posts: 38
Location: Washington DC Area

PostPosted: Sat Jul 22, 2006 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
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