How to Gain Root Access in Ubuntu

In Ubuntu you are restricted to using a normal user. You must type sudo before any useful command to get it to work. When you are ready to move up to root status on your machine, here is how you can do so.

username@my-machine~# sudo su -
Enter password: (put in your password)
root@my-machine~$

You can also set root’s password by doing this as a normal user:

username@my-machine~# sudo passwd root
New UNIX password:
Retype new UNIX password:
username@my-machine~#

After doing that you may now change to root by doing just:

username@my-machine~# su -
Password:
root@my-machine~$

Leave a Reply

Your email address will not be published. Required fields are marked *