How many time have you laughed looking at above picture? Specially Ubuntu users will know what I am taking about. Everything from installing packages to running a script we need to do add sudo before the command.
Unlike other distributions root account is by default disabled on Ubuntu. So simply doing su or su root will not work. It give authentication failure error.
Using sudo each time is fun but there are definitely other ways to perform root actions.
In order to perform root action you can do one of the following
- Use sudo with your user password, and you can do everything that root user do.
- Use sudo su with your user password to obtain root access .
- Use sudo passwd with that command are changing the root password, then you can easily access root user using su like other distros.