Configuring Sudo
To run as root use the su or sudo commands. Avoid using root for any non-administration usage, since the root account makes it easy to create security or data risks. If you frequently use a single user desktop, you may find it convenient to configure sudo so you can use the same password for both root and your regular account. To do this, follow this procedure:
Become the root user using the su command. Enter the password for the root account when prompted.
Run this command, using your user account name in the place of “sampleusername”:
Note that when sudo prompts you for a password, it expects your user password, not root’s.