how to change password in ubuntu 20.04 using terminal forgetting previous password code example
Example: change password ubuntu 20.04
open your terminal
ctrl-alt-t
passwd username
If you have admin password you can change all passwd of users
su -
passwd username