When you forgot the password,you can do this:
$ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully