Operating System - Linux
1752660 Members
5994 Online
108788 Solutions
New Discussion юеВ

Cannot Login as any user including Root

 
SOLVED
Go to solution
Jason Shannon
Occasional Advisor

Cannot Login as any user including Root

I have a Proliant machine running RH4.
I have just ran up2date on the installation to bring it to RH4 Update 4.

The update seemed to work fine and upon reboot all services look to have started.

The issue i have now is that at the login GUI, i try to login in as root and receive a popup message saying "Authentication Failed". If i try to login as any other user or enter the wrong root password in i get the usual Invalid Username/Password message.

Any help is greatly appreciated.
6 REPLIES 6
Alexander Chuzhoy
Honored Contributor

Re: Cannot Login as any user including Root

Do you also get a message for some missing librarires or just authentication?
If it's just authentication - the boot your station into init 1 see what happens.
Do you use authentication services or all accounts were local?
Jason Shannon
Occasional Advisor

Re: Cannot Login as any user including Root

We just authenticate locally.

I get no errors regarding missing libraries - just the pop up saying 'Authentication Failed'
Matti_Kurkela
Honored Contributor

Re: Cannot Login as any user including Root

Are you using the default passwd-file-based authentication, or something more complex like NIS or LDAP?

You may have to reboot using the login GUI's reboot option (if it has one) or by pressing Ctrl-Alt-Del on the console. Both these methods should cause an immediate reboot in a controlled fashion if the system is in default configuration.

When you get to the bootloader screen, interrupt the automatic boot (press any key).
You now have several possible ways to go on:

- boot to single user bypassing any authentications by using boot option "init=/bin/bash". NOTE: if you use this approach, remember to mount the root filesystem in read/write mode before trying to change anything.

- boot from RedHat installation CD using the "rescue" option. This is a more user-friendly way to regain access to the system. The rescue mode should automatically detect the installed system and mount it as a sub-tree of the installation/rescue environment. You can then examine (and if necessary, change) any configuration files.

MK
MK
Jason Shannon
Occasional Advisor

Re: Cannot Login as any user including Root

We are just using password file authentication.

I intend using the rescue cd and doing as you suggested. Do you have any idea what the files are I should be looking at?

Thanks
Trever Furnish
Regular Advisor
Solution

Re: Cannot Login as any user including Root

If you have ssh to the system allowed, check whether you can log in using ssh.

If not, try switching to a non-GUI virtual terminal. X usually runs on virtual console 7, so if you're at the console and you press control-alt-F1 (as in the function key, F1) you'll get switched to virtual console 1 and have a simple non-graphical login prompt. I suggest this because your problem could affect only GDM (the graphical login system).

As for what files to look at if you reboot, I'd suggest doing an updatedb followed by 'locate rpmsave; locate rpmnew'. Also see /var/log/messages and /var/log/secure and any other files recently updated in /var/log (hint: ls -ltr /var/log and work backwards).

The authentication and authorization processes for all services are controlled by the files in /etc/pam*, so changes (if there were any) could also cause such symptoms.

Of course none of this would be *expected* as a result of a sucessful run of up2date...
Hockey PUX?
Jeeshan
Honored Contributor

Re: Cannot Login as any user including Root

Hi Jason

Check the file in /etc/pam.d/login. this is for authentication.
a warrior never quits