LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 01: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, 01:18 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
"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 01:19 AM.
 
Old 04-30-2003, 01: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, 01:52 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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, 01:55 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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, 04:44 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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, 10: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, 10: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, 10: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, 10:30 AM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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 10:39 AM.
 
Old 04-30-2003, 11:00 AM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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, 11:49 AM   #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 11:54 AM.
 
Old 04-30-2003, 12:00 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

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

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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