forgot root password in ubuntu 18.04 code example Example: default root password ubuntu 18.04 $ sudo passwd