Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

Authentication failed


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?

1 Solution
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.
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
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.

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 
Post your closing recommendations!  No comment means you don't care.
PAQed - no points refunded (of 200)

Community Support Moderator

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now