‘user’ is not in the sudoers file

This happens to me while i try to use sudo on any command, in case it happens to you, here is the solution.

   1: su

   2: Password: <ur_root_password>

   3: chmod +w /etc/sudoers

   4: echo 'raymond (ALL)=ALL ALL' >> /etc/sudoers

   5: chmod -w /etc/sudoers

   6: exit

What it does is to add ur account to the sudoers file by making it writable through ur root account (su = superuser).

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine