LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2003, 02:11 AM   #1
Linh
Member
 
Registered: Apr 2003
Posts: 178

Rep: Reputation: 30
cannot login to redhat 9


When I logged into redhat 9 as root or any user, it throw me back into a login screen. I managed to get into the comand promt by typing "linux single" at the LILO prompt.

Now, what do I do next to be able to login to redhat 9 ?
 
Old 04-30-2003, 02:18 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
"linux single". that will load you into single user mode (runlevel 1) then just use "passwd" to set a new root password.

acid quote

http://www.linuxquestions.org/questi...056#post248056

Last edited by whansard; 04-30-2003 at 02:19 AM.
 
Old 04-30-2003, 02:21 AM   #3
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
I did set a new password for root as you have suggested, but the problem persisted.

What do I do next ?

Thank you for your help
 
Old 04-30-2003, 02:52 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
did you change any shell settings before things messed
up? Did you edit your passwd file? the chsh command
lets you change the shell. but in single user mode you
can check the passwd file and see if the shells you have
specifiled for the certain users exist.
 
Old 04-30-2003, 02:55 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Did you choose a gui login? If so, try linux 3 and see if you can log in.

If you can login, you need to reconfigure X, if you can't, check your typing for username and password and if needed, re-set the passwords.

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 8.0 configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network

# Configuring x
Linux Hardware Compatibility HOWTO - video cards
The Linux XFree86 HOWTO
Common x configuring tools:
Redhat 7.3 down - the setup utility leads to several config tools
Redhat 8.0 - redhat-config-xfree86
Debian - dpkg-reconfigure xserver-xfree86
You may have these tools:
XF86Setup
XFree86 -configure
Xconfigurator
xf86cfg
xf86config
xconf
nVidia Driver Installation NHF
nVidia driver page
 
Old 04-30-2003, 05:44 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
I had the exact same problem - can I suggest that at the "linux single" command prompt you test your keyboard to make sure that the keymappings are as you expected. I used a 'special character' in my root pwd and the key was not the same in the install as it was on boot up. I had to reinstall twice before I figured that one out.
 
Old 04-30-2003, 11:17 AM   #7
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by whansard
did you change any shell settings before things messed
up? Did you edit your passwd file? the chsh command
lets you change the shell. but in single user mode you
can check the passwd file and see if the shells you have
specifiled for the certain users exist.
==================

Please show me step by step to troubleshoot using chsh command as you have suggested.

Thank you for your help.
 
Old 04-30-2003, 11:21 AM   #8
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
[QUOTE]Originally posted by fancypiper
[B]Did you choose a gui login? If so, try linux 3 and see if you can log in.

If you can login, you need to reconfigure X, if you can't, check your typing for username and password and if needed, re-set the passwords.

===================================

I was not able to login either by GUI or by text mode. I did get into the command prompt using "linux single" at the LILO prompt.
Please show me step by step for Linux 3 and for reconfigure X as you have recommended.

I did reset the password, but the problem persisted, so the password is not the problem.
 
Old 04-30-2003, 11:22 AM   #9
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by XavierP
I had the exact same problem - can I suggest that at the "linux single" command prompt you test your keyboard to make sure that the keymappings are as you expected. I used a 'special character' in my root pwd and the key was not the same in the install as it was on boot up. I had to reinstall twice before I figured that one out.
======================================

Please show me step by step how to test the keyboard as you have suggested.
 
Old 04-30-2003, 11:30 AM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Quote:
Originally posted by Linh
I did reset the password, but the problem persisted, so the password is not the problem.
I haven't used chsh, I use bash, but I would think the password proceedure would be the same and it still sounds like you aren't typing the username and passwords you assigned correctly.

Is the response to your login this?:

Login incorrect

Or, do you get another error message instead? Specific error messages will help us diagnose your problem.

Successful login:
Code:
Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-3 on an i686

tinwhistle login: phil
Password:
Last login: Tue Apr 29 17:07:21 on tty6
[phil@tinwhistle phil]$
Unsuccessful login:
Code:
Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-3 on an i686

tinwhistle login: sam
Password:
Login incorrect

login:

Last edited by fancypiper; 04-30-2003 at 11:39 AM.
 
Old 04-30-2003, 12:00 PM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i think it accepts his password, and kicks him back to
the login prompt.

for chsh
you just run the command
chsh
it says what your current shell is, and
asks what you want to change it to.
maybe you deleted or moved bash or sh?

i would boot into single user mode, then
chsh
and make sure that the shell path i used existed
like /bin/bash
or /usr/bin/bash
or /bin/bash2
or /bin/sh
or /bin/csh
 
Old 04-30-2003, 12:49 PM   #12
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Interesting one this - Mine has started doing exactly the same thing recently. Just kicks me back to the login screen, no error message. However, if I try again it lets me in. I'm pretty sure I'm not typing the wrong password or anything.

A line which I'm sure wasn't there before (maybe wrong) has appeared in my bash profile

"unset USERNAME"

If I delete it it comes back again after a failed login.

Last edited by Looking_Lost; 04-30-2003 at 12:54 PM.
 
Old 04-30-2003, 01:00 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You could boot linux single and examine /var/log/messages to see if that gives any help.
 
Old 05-02-2003, 05:28 PM   #14
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Quote:
Originally posted by Linh
======================================

Please show me step by step how to test the keyboard as you have suggested.
type your password on screen in clear (in gui login type instead of your name) if the password looks the same as when you set it, it's not that.
 
  


Reply


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
Redhat - localhost login Onimoto Linux - Software 1 05-15-2004 11:35 AM
RedHat 7.3 - Need help with remote login SnapETom Red Hat 2 10-13-2003 11:52 AM
.login in Redhat 9 andym Linux - Newbie 3 05-07-2003 05:51 PM
Help! Cant login to redhat 8.0 MINDOFD Linux - General 3 11-21-2002 04:08 PM
Login problem on RedHat 7.2 rokcvahte Linux - Security 1 04-20-2002 12:37 PM


All times are GMT -5. The time now is 12:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration