Chapter 2. Administrative Tasks

In Ubuntu, for security reasons, administrative tasks are confined to users with special privileges. Administrative access is given to individual users, who may use the sudo command 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, which by default is 15 minutes, but can be changed. This feature was designed to allow users to perform multiple administrative tasks without being asked for a password each time.


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

Some other tips on using sudo: