Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
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.
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.
[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.
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.
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.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.