Red Hat enterprise Linux v5-Keeps prompting for username & password while loggin in
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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Try re-booting into single-user mode:
When the grub menu appears, hit any key to stop the count
Select the desired OS to boot, and hit "e" for edit.
Select the kernel line and "e" again
At the end of the kernel line, add "single" (no quotes)
Enter and then "b" to boot.
It should come up in a root terminal with no password required. You can then enter a new password using "passwd root"
Thanks for the quick response, but I was still unable to change any password or log into linux.
I was able to boot into single user mode, but the same error about unknown module still appears when I tried to change the root password.
The problem was it immediately went back to prompt me for username and password after I have keyed the password.
The red hat support staff went through with me and verify that my password is expiring but still can use. I just dun know why it cannot get authenticated to log in.
Can I use a rescue disk to change the root password? I heard we can do that but I have also consulted the red hat support ppl, and the support staff doesn't recommend it but he couldn't tell me his concerns.
He say that the installation disk is supposed to be used only for irreversible changes to system.
Can anyone give me a second opinion? Any comment is appreciated. Thanks.
I have a feeling that the password file or something is corrupted or something like that.
Somehow, the authentication process was not processed or have errors, and the system just return me back to the log in screen.
Below is a representation of the screen during log in attempts under normal condition -
I had some assistance from someone and we use the command "cat /etc/passwd" and "more /etc/passwd" to check any existing users and tried to use them, but I do not have the passwords. When I use a wrong password, the system will return an error message saying "Login Incorrect"
Below are 2 representations of the screen during my attempts to change passwords.
E.g 1 - Changing the root password
sh-3.1# passwd root
Changing password for user root.
passwd: Module is unknown
[U]E.g 2 - Changing another username password; username: notes
sh-3.1# passwd notes
Changing password for user notes.
passwd: Module is unknown
Description to the above examples:
It doesn't allow me to change any password even under the shell prompt.
Do let me know if there is anything I could do or any further checks I should take to isolate the problem. Thanks a million guys.
1. If it says 'module is unknown' I'd expect it to mean that a pam module that is being called doesn't exists, or there is a typo in the module name being called.
Also check the ownerships/perms for all the pam modules.
2. you can reboot the server from the install media; at the initial prompt enter
and follow the prompts.
Prob best to clear the root passwd. Ensure you create an admin user in sudoers file with ALL privs, so you can work on the problem.
Do other userids have this issue or only root?
This is a Notes server so no users will come here to log into the OS. I've tried using the single user mode to change another username account's password. Same problem occurred.. It says, 'Module is unknown' :S
Thanks for the tip. I guessed I will have to check out your suggestion later.. cos now I am having a new problem as I can't get the CDROM drive to boot from the install disk.. It seem to always bypass the CDROM drive (even though I have ensure that CDROM is the first boot device in the BIOS) and goes directly to boot from the OS itself.
Let you guys knows if I am successful after I managed to get it boot from the CDROM. Thanks guys. Really appreciate all the help here..