LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 11-06-2003, 08:32 PM   #1
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Rep: Reputation: 15
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?
 
Old 11-06-2003, 08:34 PM   #2
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
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.
 
Old 11-07-2003, 02:00 AM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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
 
Old 11-07-2003, 02:15 AM   #4
hiteshmaisheri
Member
 
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231

Rep: Reputation: 30
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.....
 
Old 11-07-2003, 09:29 AM   #5
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
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?
 
Old 11-07-2003, 10:07 AM   #6
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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
 
Old 11-07-2003, 10:18 AM   #7
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
Question

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...
 
Old 11-07-2003, 10:24 AM   #8
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
What are the permissions on /etc/passwd and /etc/shadow?
 
Old 11-07-2003, 10:41 AM   #9
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
*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...
 
  


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
su root: authentication failure (password correct) scs_24 Linux - Newbie 3 12-12-2009 01:07 AM
Redhat 9 root login password jmzcons Linux - Software 1 02-27-2005 04:30 PM
Can't login; password is correct ticky87 Linux - General 2 08-15-2004 07:32 PM
Samba issue. Sometimes cannot login by using correct user/password. olegarr Linux - Networking 3 10-30-2003 09:17 PM
Cannot log in with CORRECT password Citizen Bleys Linux - Security 2 07-24-2003 10:15 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration