How to grant `sudo` rights to a user in CentOS?

centos

(Dmitry Fedyuk) #1
usermod -aG wheel <username>
echo '<username> ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers