LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2004, 02:43 PM   #1
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Rep: Reputation: 15
Help! Serious Problems With Gentoo!


Recently I updated portage by typing 'emerge -u portage'. I then updated the portage tree by typing 'emerge sync'. I was informed that configuration files needed updating and so I typed the relevant command: etc-update. However, I didn't really know what I was doing and I (stupidly) went by my instinct on how to act upon the updates of each of the config files it listed.

Since doing this I have two serious problems:

1) I can't connect to the Internet on Gentoo (I'm currently using Mandrake - my back-up Linux).

2) I can't login as root. I get an 'incorrect password' error, even though I know I'm typing the correct password.


I definitely have backups of my /etc/make.conf and /etc/rc.conf files from before I updated portage. I don't think I have backups of any of the other config files.

Please ask me for the relevant info you'll inevitably want to know in order to help me; I'm sure I can get it.

Above all, please help me!
 
Old 08-23-2004, 04:14 PM   #2
KFM
LQ Newbie
 
Registered: Apr 2004
Location: USA
Distribution: Gentoo GNU/Linux 2004
Posts: 13

Rep: Reputation: 0
Okay, first of all, try using the passwd command to change your password to something else.

If you can't login as root in the first place, try going back through the LiveCD and deleting the root password from your /etc/shadow file.

Next, fix your internet from the LiveCD setup.
 
Old 08-23-2004, 04:25 PM   #3
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
I tried the 'passwd' command but I can't login as root in the first place so it doesn't work.

I'll try your suggestion about the /etc/shadow file but I would appreciate some elaboration about how to 'fix my internet' from the LiveCD. How should I do that? When I installed Gentoo I didn't need to configure my Internet connection at all - it worked straight away. My network card and the broadband connection that I have shared through my router is always detected automatically on Linux... it has until now anyway.

Thanks for your help.
 
Old 08-23-2004, 04:51 PM   #4
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
OK. Somehow I've managed to get the Internet to work again on Gentoo.
Instead of using the LiveCD can I just do it from within Mandrake Linux (installed on the same PC)?
And, in my /etc/shadows file, the root password is not listed explicitly - it just has a lot of odd characters next to where it says 'root'.
 
Old 08-23-2004, 05:40 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Did you try just typing enter as the root password? Perhaps the root password has been set back to nothing since your probably over wrote /etc/passwd.
 
Old 08-23-2004, 07:09 PM   #6
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Rep: Reputation: 15
Quote:
Originally posted by Baryonic Being
OK. Somehow I've managed to get the Internet to work again on Gentoo.
Instead of using the LiveCD can I just do it from within Mandrake Linux (installed on the same PC)?
you basiacally rooted your own box. its pretty much the only course of action left when you lose the root passwd. i was going to suggest Knoppix or Knoppix.STD, but using your mandrake install should work. all you will have to do is mount your gentoo partition to your file system under mandrake.

from there you should be able to remove the 'root' shadow entry. this should change the root password to a blank. just make sure you back up your shadow file first, just in case.

Quote:
And, in my /etc/shadows file, the root password is not listed explicitly - it just has a lot of odd characters next to where it says 'root'.
dont worry, this is completely normal. the shadow file holds the password in ciphertext. when you run the passwd command on the console, the system runs your password thru a one way encryption function [usually MD5 or SHA, you can encrypt, but not decrypt a one way hash] to create some ciphertext and puts it in the shadow file. when you login to the system as root, the same one way function is preformed on the password that you typed in, the ciphertext of your password and the contents of your shadow file are compared. if they match, the system logs you in.

Last edited by -Nw- neX; 08-23-2004 at 07:17 PM.
 
Old 08-24-2004, 04:37 AM   #7
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
I've done that and it hasn't made any difference. Should I delete the entire line containing the word 'root' in the shadow file? Pressing enter as the password doesn't work either.
 
Old 08-24-2004, 05:34 AM   #8
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
OK. I've worked it out and I can now log in as root in Gentoo, but I can't 'su' to become root from a normal user. I still get the 'su: Permission denied' error. Now what do I do?
 
Old 08-24-2004, 05:43 AM   #9
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
The user needs to be in the 'wheel' group to be able to do that.
 
Old 08-24-2004, 07:41 AM   #10
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
Thank you! That's solved it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
emerge --emptytree system problems, gentoo problems!!! alamuru420123 Linux - Distributions 6 10-11-2005 10:48 PM
Gentoo Problems with X patrickclay Linux - Distributions 3 03-24-2005 07:49 PM
A few problems with Gentoo... SaMe Linux - Laptop and Netbook 5 12-20-2004 04:43 PM
X problems in Gentoo 1.4 questionasker Linux - Distributions 3 09-06-2003 02:06 PM
Gentoo problems :( 2k. Linux - Distributions 12 05-28-2003 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration