add user to sudoers

Shell
usermod -aG sudo usernameecho "username  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/usernameusername  ALL=(ALL) NOPASSWD:ALL

Source

Also in Shell: