Avatar of n_k_n
n_k_n
 asked on

Authentication failed

Hi,

I am new to linux, i did freak out inside linux. After that i  restarted the machine, and now i am not able to login. I am getting a message 'Authentication failed'. If i am giving wrong password there is another message coming saying 'wrong user name' Authentication failed is displayed on a dialog box. I created another user and tried to log in the same message is displayed.

could you tell me why is it so?

Narayanan
Linux Networking

Avatar of undefined
Last Comment
GhostMod

8/22/2022 - Mon
kiranghag

assuming redhat linux
can u login in using "root"???
if this is your machine and lilo is installed...you can say "linux single" when the text lilo prompt is on screen.
if u get colorful lilo with penguin on screen.
press control+x to get to the text prompt.

if u can boot into single mode...you can edit /ec/passwd file and remove the password for an user by deleting the junk part (between two :) from the line which corresponds to the user's name (be careful)

after u save and reboot, that user will not asked for password. and u can again change it to whatever u want from the command prompt.

make cure u copy /etc/passwd file as a backup if in case u edit it wrongly.
majorwoo

do not edit your /etc/passwd to remove the entry for a password, assuming you do get it right and setup no pasword that means once you get on the net anyone who tries to get in as that user can do it with no password!

Ok, when you created the user did you create a password for them? Otherwise the account is disabled be default, which is whyt you cant login.

useradd test
passwd test
<enter password 2x>

now you should be able to login
ken_330

hi ,
   U are mostlikely to have forgotten the Passwd or key in the wrong thing.Remember, LINUX and all UNIX are Uppercase and lowercase counts.I advice for newbie , u should use easy passwd or u write it down during the installation ,so u wont be wrong .
   As for other choice, boot into single usermode as advice by the former answerlist.

 
Your help has saved me hundreds of hours of internet surfing.
fblack61
CleanupPing

n_k_n:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
ASKER CERTIFIED SOLUTION
GhostMod

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.