I am trying to reset password for a user account for which current password is lost. I am logged in as root but still it is asking for current password. How do I fix this?
closed as unclear what you're asking by Jeff Schaller♦, G-Man, sebasth, dr01, Archemar Dec 8 '17 at 8:40
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
If you are logged in as root, then you simply type the new password twice. It will not ask for the old password. But you have to use the proper syntax:
where username is the name of the user
root@Test:~# passwd someuser Enter new UNIX password: Retype new UNIX password: