Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 12-21-2003, 08:17 AM   #1
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.

Old 12-21-2003, 11:40 AM   #2
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 11:42 AM.
Old 12-21-2003, 05:15 PM   #3
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, 09:05 AM   #4
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, 12:34 PM   #5
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...


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




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:08 PM
cannot login to ssh anymore chadi Linux - General 12 11-18-2004 02:31 PM
Cannot login anymore all of a sudden... Worstje Linux - General 5 07-05-2004 02:22 AM
Cannot login as root anymore Schmurff Linux - Newbie 6 03-16-2004 12:59 AM
When I rebooted my RH 8.0 Server not able to login anymore vcnetman Linux - Newbie 2 11-10-2003 04:15 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:46 PM.

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