The /etc/sudoers file tells sudo(8) which permissions to give to which users. See Chapter 7 for a full sudo(8) tutorial.