Linux.com

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.

 

Comments

Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFS201 Essentials of System Administration
    12 Jan » 30 Mar - Online Self-Paced
    Details
  2. LFD331 Developing Linux Device Drivers
    01 Jun » 05 Jun - Virtual (GUARANTEED TO RUN)
    Details
  3. LFD320 Linux Kernel Internals and Debugging
    08 Jun » 12 Jun - San Jose - CA + Virtual (GUARANTEED TO RUN)
    Details

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