How to Add a Standard User to the /etc/sudoers File in Mac OS X
In order to use the sudo command with a standard account, it needs to be added to the sudoers file. Perform the following steps as an administrator.
1.) Open sudoers file using
2.) You will see the following block in the file
# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL
Copy and paste the line for the root account below the %admin line and rename it to the account you want to have sudo privileges.
3.) Save the file and exit (if in vi, :wq does this). You should now be able to sudo from your user account.