Whonix-Gateway is not a valid user password.

Hello. When I installed Whonix, I changed the password for root and user using ‘passwd’. Now when I enter the password it doesn’t work.

Sorry try again.
/usr/libexec/security-misc/pam-info: WARNING: 1failed loginattempts for user_name 'user'.

I wrote down all the passwords and don’t understand why they don’t work. Without the password, I can’t configure anything in the operating system.
What should I do now if the old password does not work and how can I now change it to a new password?

Reset User Account Password

(Whonix is based on Kicksecure.)