On Fri, Aug 21, 2009 at 3:48 PM, Ashiqur Rahman Angel
<angel@linux.org.bd> wrote:
2. Run this command, using your user account name in the place of "sampleusername":
echo 'sampleusername ALL=(ALL) ALL' >> /etc/sudoers
Note that when sudo prompts you for a password, it expects your user password, not root's. If you don't want to be prompted a password, use:
echo 'sampleusername ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
Note that above setting would allow anyone with access to your account to simply run any command including those requiring root access without any password and represents a substantial security risk. So I recommend you to use the 2nd command.