When you install Ubuntu, it doesn’t give you the option of creating a root account. Only a user. Ubuntu is more desktop oriented so it pretends to not actually have a root account. This only works so long as you don’t legitimately need it for something. If you do, there is a simple trick to get a root shell.
Pop open a terminal window and type:
sudo passwd
You will be prompted for your current account’s password. Next you will be prompted to set the root password and confirm it. Now type:
su
You should be prompted for the password you just created and then you will be handed a root shell for your efforts.
If you like the content on this site, please support it by using this link to order from Amazon. You know you were going to go there and buy stuff anyhow so why not help me pay the hosting bill.
3 Trackbacks / Pingbacks for this entry:
[…] su to root. Check this link to learn how to enable a root shell in Ubuntu […]
[…] http://www.notanon.com/unix-tricks/how-to-get-a-root-shell-in-ubuntu/2010/04/23/ […]
[…] well because it doesn’t have X11 on it by default to muck things up. You’ll need to log in as root or use sudo. Don’t get too attached to this install because you will be throwing it out the […]