sudoers add user debian code example
Example 1: add user to sudoers
usermod -aG sudo username
Example 2: add user with sudoer centos
username ALL=(ALL) NOPASSWD:/usr/bin/du,/usr/bin/ping
usermod -aG sudo username
username ALL=(ALL) NOPASSWD:/usr/bin/du,/usr/bin/ping