Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-06-2003, 09:32 PM
|
#1
|
Member
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50
Rep:
|
Can't login using correct password on RedHat 9
I'm having problems with a new installation of RedHat 9 on a Toshiba Satellite 2805-S201. Everything seemed to be fine, even after I did some updating using a RedHat port of apt-get. Then all of a sudden, I can't login! But it is weird - if I purposefully use an incorrect password, it will return the "Incorrect Login" feedback. But if I use the correct root password or boot password, the screen immediately returns to the login prompt, without any error message.
- I'm using text login (login level 3)
- I booted her up using the RedHat CD and "Rescue Mode". I got a shell prompt, and typed
chroot /mnt/sysimage
and then
passwd
to change the password, and it said the password was changed successfully. I rebooted and the same problem still occurs. I looked at the /etc/passwd file and the first line was as it should be, I think. (Looked it up at Redhat.com)
Can someone help me get on my Linux machine?
|
|
|
11-06-2003, 09:34 PM
|
#2
|
Member
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50
Original Poster
Rep:
|
one more thing
I also had SSH working, but now when I try to SSH to the machine, I am prompted for username and password, and as soon as type in the password (which I know is correct), I am disconnected.
|
|
|
11-07-2003, 03:00 AM
|
#3
|
Member
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555
Rep:
|
Hi!
I take it that no user (not even root) can log in on the machine. True?
This may be a silly question, but do you see any error messages during boot? Things that don't start up with a green [OK] but with a red [FAILED]?
The reason I ask is that I suspect that you are having a problem not with the password program, but with your shell (bash for example). It could be that the shell program itself (/bin/bash) has left for a world tour. It could also be that one or more of the dynamic libraries used by bash is missing or broken. If the latter is the case, then you could possibly see other stuff using the same libraries fail during start-up.
Try editing your /etc/passwd file when in rescue mode. Change the login shell for your normal user to some other shell program, /bin/csh for example. If this works, then you have a much better starting point for debugging your system.
And, last, if you didn't understand anything of the above. If you don't know what a dynamic library is and don't care. Maybe you should pop the CD back in and try a fresh install?
Good luck!
Martin
|
|
|
11-07-2003, 03:15 AM
|
#4
|
Member
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231
Rep:
|
when u get into rescue mode... after typing chroot /mnt/sysimage...
just give passwd -d root
to remove the password for root.... then when u will get the terminal and u type the user name as root and press enter u will get he shell from there give the passwd command and u can give the new password it will work well and fine.....
|
|
|
11-07-2003, 10:29 AM
|
#5
|
Member
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50
Original Poster
Rep:
|
Ok, I changed to the csh shell; no change. Next I deleted the root password. Now here's something different!
After typing root as the login, no password comes up, and it returns directly to the login. Hmm.
But, after pressing root, enter, repeatedly, I came up with the error message! Yay!
ERROR: Authentication service cannot retrieve authentication info
INIT: Id "1" respawning too fast: disabled for 5 minutes
The INIT message is because I was going too fast typing root and enter.
But the other is the key to my problem. Anyone seen that or know what it means?
|
|
|
11-07-2003, 11:07 AM
|
#6
|
Member
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555
Rep:
|
If you log in with rescue disk and type
authconfig
(full path: /usr/bin/authconfig)
what do you see then?
On my system, first page everything unchecked, second page only "Use Shadow Passwords" and "Use MD5 Passwords" are checked.
I'm sorry, but I feel that I don't know enough about user authentication to help very much here. But it's a really interesting subject. Think I will have to read a little about it.
Regards
Martin
|
|
|
11-07-2003, 11:18 AM
|
#7
|
Member
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50
Original Poster
Rep:
|
I'll try authconfig.
Update - I can change my login level to 5, and I do get into the xdm or whatever you call the graphical login stage. But, trying root and his password (I gave him a password again) returned an error window that said "Authentication Failed".
Very strange, and the worst part is, I don't know what I did...
|
|
|
11-07-2003, 11:24 AM
|
#8
|
Member
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72
Rep:
|
What are the permissions on /etc/passwd and /etc/shadow?
|
|
|
11-07-2003, 11:41 AM
|
#9
|
Member
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50
Original Poster
Rep:
|
*rather sheepishly*
Ran authconfig, saw that LDAP authentication was enabled.
I have no idea why that was on.
And I claim no responsibility.
Anyway, if you know your password, and you can't login, run authconfig.
Case closed...
|
|
|
All times are GMT -5. The time now is 06:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|