You need to edit the /etc/sudoers file. It should have a section like this:
Code:
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
yourusername ALL=(ALL) ALL
You just have to edit the sudoers file. its in the /etc directory, but you'll have to either log in as root or use su - to open/save the file. You'll just need to add your ID into the sudoers file.
If you are going to be doing a lot of sudo stuff, it would probably be easier to make yourself part of the wheel group and then uncommenting the line is /etc/sudoers that gives full access to wheel. Doing it that way is easier than maintaining lists of users.