Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
locked out of my gentoo pc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Spanik
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 276
Location: Belgium

PostPosted: Fri Jun 30, 2006 9:03 pm    Post subject: locked out of my gentoo pc Reply with quote

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


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Fri Jun 30, 2006 9:14 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 552

PostPosted: Fri Jun 30, 2006 9:35 pm    Post subject: Reply with quote

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


Joined: 19 Sep 2002
Posts: 241

PostPosted: Sat Jul 01, 2006 3:45 am    Post subject: Reply with quote

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


Joined: 21 Sep 2003
Posts: 476
Location: Winnipeg, Canada

PostPosted: Sat Jul 01, 2006 3:48 am    Post subject: Reply with quote

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


Joined: 12 Dec 2003
Posts: 276
Location: Belgium

PostPosted: Sat Jul 01, 2006 11:20 am    Post subject: Reply with quote

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


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Sat Jul 01, 2006 6:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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