Understanding su and sudo

First of all, su means super user.  Distros like Ubuntu does not have root account . So what to do if one wants to do administrative tasks? Simple, just log in as super user. How? sudo is the answer. Here, are the steps how to log in as root/super user in distros where there is no root account.

 If you are in GUI mode,

Go to Accessories > Open New terminal then type "sudo su -" thats it you'll become root. And if then, if you want to be super sneaky you can type passwd and change/make new password for superuser account so that next time if you want to log in as root you'll just have to do is...

$ su (enter)
and type the password you set earlier.



Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    16 Feb » 20 Feb - Atlanta - GA
  2. LFD331 Developing Linux Device Drivers
    16 Feb » 20 Feb - San Jose - CA
  3. LFS220 Linux System Administration
    16 Feb » 19 Feb - Virtual

View All Upcoming Courses

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board