Linux Sudo Password?

I want to know what is Sudo Password exactly.
I googled and found out this:-

In Linux (and Unix in general), there is a superuser named root. The Windows equivalent of root is Administrator. The superuser can do anything and everything, and thus doing daily work as the superuser can be dangerous. You could type a command incorrectly and destroy the system. Ideally, you run as a user that has only the privileges needed for the task at hand. In some cases, this is necessarily root, but most of the time it is a regular user.

By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user. However, since the root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in - it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as root without having to know the root password.

This means that in the terminal you should use sudo for commands that require root privileges; simply prepend sudo to all the commands you would normally run as root. For more extensive usage examples, please see below. Similarly, when you run GUI programs that require root privileges (e.g. the network configuration applet), use graphical sudo and you will also be prompted for a password (more below). Just remember, when sudo asks for a password, it needs YOUR USER password, and not the root account password.

But i did not understand the last line.
What is YOUR USER password and Root Account password exactly?

Suggetions would be appreciated:)
 
there no special sudo password.

*If* you have rights to become root(provided by root offcourse), then you can use your very own account password to perform administrative actions on your box. :)

root password is the password for the most prviliged user on a unix box, rest all are lesser mortals with their a/c passwords.

In a nutshell

root password != sudo password.

a/c password == sudo password if allowed in the first place by root.

a/c password != sudo password if not allowed in the first place by root.
 
^very well written in simple words :D

checkout su , sudosh , rootsh commands as well. Very similiar to runas command in Windows.

sudo can be configured to ask either your user's password or root user's password.

check sudoers' manual to know it in details :hap2:
 
In Ubuntu you should have already been added to the sudoers file. When you want to invoke root type sudo before the command in the terminal.

For example:-

Code:
sudo nautilus

You will be asked for your passwrod and you will want to put in your user

password not the root password.

This will open up a root nautilus explorer.
 
Back
Top