I cannot reset the password. A box comes showing various commands like

 -a, --all -r,--repository REPOSITORY -d --delete

and a line at the top of the box is also present

     usage:passwd [options] login

and I dont know how to write the command.

  • If that question is not what you are looking for, please edit this to clarify, which will get it reviewed for possible reopening. In particular, if you're actually looking for how to change your password that you know and is working, then you will not need to boot into recovery mode or do any such thing. – Eliah Kagan Oct 12 '17 at 7:53

The usage of the passwd command with the option -d for deleting a password is

sudo passwd -d LOGIN

Replace LOGIN with the username you need to reset.

  • I'm not sure that is really what the OP is asking for. – Eliah Kagan Oct 12 '17 at 7:10
  • @EliahKagan true, it is a bit obscure why they need to reset a password but what we have so far is that they posted the manpage excerpt that is shown when we give in the passwd command with a wrong syntax, and it is version independent. – Takkat Oct 12 '17 at 7:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.