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.

I guess you mean you don't recommend to use 2nd option? right?

--
Thanking you
Shahriar

Volunteer, Bangladesh Linux Users Alliance http://linux.org.bd http://forum.linux.org.bd

Marketing & Contents Officer, Ubuntu Bangladesh http://www.ubuntu.linux.org.bd

Endorsement: আমাদের প্রযুক্তি ফোরাম http://forum.amaderprojukti.com/ and মুক্ত.অর্গ http://mukto.org