0

I have two user accounts and forgot one user's password. I have tried to reset it from the boot menu. After selecting recovery mode I have selected Drop to root shell prompt option but then it asked me to "give the root password for maintenance(or type control-D to continue)" don't know the password and even typing control-D doesn't work

What should I do now??

Please give me a solution

A J
  • 11,367
  • 17
  • 44
  • 59

1 Answers1

0

Login with the user where you still know the password. Open a terminal and get a root shell, e.g. sudo -i.

Then change the password for the user you don't know the password:

passwd username

Replace username with the name of your user.

Afterwards close the the root shell with Strg+D and test with su - username the new password.

Fabz
  • 21
  • 2
  • the OP stated in his/her comments that they do not have root access, either in recovery mode or via sudo. Thi shas to be resolved with a live CD and is a duplicate with a link to the solution given above. – Panther Jun 17 '14 at 15:20