On Raspberry, you may need to change a password of an user session, you may have to use the configuration panel of Raspbian OS :
# raspi-config
… find the option :
Change user password
However, you can run :
$ passwd
… and for the root one :
# passwd root