Ubuntu disables the root account by default. One simple command can re-enable it:
sudo passwd root
To switch to the root user in the shell:
su
Alternatively, you can switch to the root user in the shell without enabling the user account by using the following command:
sudo -s








