Linux

  1. Home
  2. Computing & Technology
  3. Linux

Root And Sudo

Ubuntu Documentation

By Juergen Haas, About.com

Root And Sudo

The root user in GNU/Linux is the user which has administrative access to your system. Normal users do not have this access for security reasons. However, Ubuntu does not include the root user. Instead, administrative access is given to individual users, who may use the "sudo" application to perform administrative tasks. The first user account you created on your system during installation will, by default, have access to sudo. You can restrict and enable sudo access to users with the Users and Groups application (see the section called "Users and Groups" for more information).

When you run an application that requires root privileges, sudo will ask you to input your normal user password. This ensures that rogue applications cannot damage your system, and serves as a reminder that you are about to perform administrative actions which require you to be careful!

To use sudo when using the command line, simply type "sudo" before the command you wish to run. Sudo will then prompt you for your password.

Sudo will remember your password for a set amount of time. This feature was designed to allow users to perform multiple administrative tasks without being asked for a password each time.


Note:    Be careful when doing administrative tasks, you might damage your system!

Some other tips on using sudo:

  • To use a "root" terminal, type "sudo -i" at the command line.

  • All of the default graphical configuration tools in Ubuntu already use sudo, so they will prompt you for your password if needed.

  • For more information on the sudo program and the absence of a root user in Ubuntu, read the sudo page on the Ubuntu wiki.

* License

* Ubuntu Desktop Guide Index

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Distributions
  5. Popular Linux Distros
  6. Ubuntu
  7. Ubuntu Documentation
  8. Ubuntu Desktop Guide - Root And Sudo

©2009 About.com, a part of The New York Times Company.

All rights reserved.