I have installed Ubuntu Amazon ec2 instance and got the following error:
First I use ppk key and ubuntu as username and I was able to login to my system and I use sudo su
command to get root access (without any password) there were no problem, then I made the following change in file /etc/sudoers
#add line
Ubuntu ALL=(ALL) ALL
Now when I connect using ssh it get connected, but when I use sudo su
command it ask password but I have no idea what the password is how to solve this?
(I think it will give root privileges and I don't need to use sudo command each time when I run apt-get update and apt-get upgrade, but now I can not access my root account.