LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-21-2003, 07:17 AM   #1
rcaldera
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Rep: Reputation: 0
I can't login anymore!


I installed RedHat 9 on my laptop a month ago. I've always kept it updated. It worked great until last night. I was messing around with some network settings because I can't seem to view files on my Windows desktop computer. That's another problem I won't go into here. I didn't think I really make any changes. I thought I was just browsing through the networking info. When I rebooted, it wouldn't let me login in as anybody. I tried 'root' and my only other user. If I type in 'root' and my correct password, it just comes back to asking me for username. If I type in 'root' and incorrect password, it tells me 'login incorrect'. So I know that somewhere in there it recognizes the correct password, but I can't go any further. The same thing happens when I login as my only other user.
How can I get in there? Is there some kind of system restore?
Any help would be greatly appreciated.

Rich
 
Old 12-21-2003, 10:40 AM   #2
randomblast
Member
 
Registered: Aug 2003
Location: Manchester, England, UK, The World....
Distribution: Gentoo/SuSE 9.0
Posts: 291

Rep: Reputation: 30
it sounds like you've wiped your passwd file, but it could be a problem with your login manager, at the login screen type [CTRL] + [ALT] + [F1]
if you still can't login there, then boot up your rescue disc (install disc 1, type 'linux rescue' at the boot prompt instead of pressing enter.
thhe type 'ls -lh /etc/passwd*'
if it returns nothing, yo'll have to reuild your passwd file from scratch
if it returns '/etc/passwd' then the passwords are probably wrong
if it returns something similar, like /etc/passwd~ or /etc/passwd-, but no passwd, then do 'cp /etc/passwd<whatever-else-it-was> /etc/passwd'
post what you find anyway

EDIT: by the way, /etc/passwd is the file that linux keeps track of users in

Last edited by randomblast; 12-21-2003 at 10:42 AM.
 
Old 12-21-2003, 04:15 PM   #3
rcaldera
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I tried using disk 1 and typing in linux rescue. It went through a few steps but eventually I ended up at an empty blue screen. It also said it couldn't find 'ls'. I think I really screwed it up a lot. Since I've only been using it for a month, I'm about to reinstall RedHat 9. Is there any way I can avoid this in the future, without backing up the whole hard drive? I hate comparing Linux to Windows, but is there some kind of 'System Restore' in Linux? I'm determined to make this OS work for me. I can't stand Windows anymore.
I became hooked on Linux ever since I took a course in Unix this semester.
Thank you very much for your patience and assistance.
 
Old 12-23-2003, 08:05 AM   #4
randomblast
Member
 
Registered: Aug 2003
Location: Manchester, England, UK, The World....
Distribution: Gentoo/SuSE 9.0
Posts: 291

Rep: Reputation: 30
what kind of things do you want to restore?
if it's documents and user settings, just copy your home directory somewhere safe.
and don't worry about screwing up the OS, i did it about 3 times in my first month with RH9, it's all part of the learning curve
 
Old 12-23-2003, 11:34 AM   #5
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
okay...just dont take tension....we got solution for login problems..

Get your CD 1 and boot from it...

1. At the boot prompt type

linux rescue

2. Then it will ask u for couple of things...language and keyboard.....choose whatever u wana choose..

3. It will ask u to change your root directory to /mnt/sysimage

do that by giving the command

chroot /mnt/sysimage

4. Now, change your root password with the passwd command...

passwd

Thats all....I think your login problems will end there and then...Post again if there are any errors ....

Regards,

amit
 
  


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
can't login as root anymore TranceDude Linux - Software 1 09-18-2005 05:08 PM
cannot login to ssh anymore chadi Linux - General 12 11-18-2004 01:31 PM
Cannot login anymore all of a sudden... Worstje Linux - General 5 07-05-2004 01:22 AM
Cannot login as root anymore Schmurff Linux - Newbie 6 03-15-2004 11:59 PM
When I rebooted my RH 8.0 Server not able to login anymore vcnetman Linux - Newbie 2 11-10-2003 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:09 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