change password ubuntu 20.04

C++
$ sudo -i
$ passwd root
new password:...
confirm password:...open your terminal
ctrl-alt-t

passwd username

If you have admin password you can change all passwd of users 
su -
passwd username
Source

Also in C++: