Sudo su asks your password, becomes root momentarily to run su as root In a default ubuntu install the person who installed the os is given sudo permission by default. So in this case you are running su using sudo and you don't have to know root's actual password
Su root switches to the user named root and doesn't simulate directly logging in Using sudo sudo is an alternative to giving people a root password in order to perform superuser duties Your working directory will be /root, and it will read root's.profile etc
Sudo bash where bash is command to run with sudo. From su 's man page For backward compatibility, su defaults to not change the current directory and to only set the environment variables home and shell (plus user and logname if the target user is not root) I am having problems with the su command
I know my password and i am typing it correctly, but su indicates authentication failure So i checked on the internet and then went into recovery mode and This will change your user identifier and inherit the environment variables as if you had logged in with that user Sudo bash & sudo sh
While you can create a password for the root account allowing you to log in as root with su, there are some distinct benefits to using sudo