Login as root or su to get root prompt
su
type visudo
visudo
an editor will open find a line says
root ALL=(ALL) ALL
add one with your username below that
user ALL=(ALL) ALL
Type ctrl+x Type Y to the prompt
ctrl+x
Y