Why sudo passwd username keeps asking for the current password [duplicate]
I've finally found the solution, but it does not answer why sudo passwd <username>
suddenly started asking for the current password, so I am not going to mark it as a solution.
To solve it run as root usermod -p "" mikolaj
, and then change the password using passwd
as always, and when it asks you for the current password, simply press enter without typing anything.