Debian Set Sudoers

sudo usermod -aG sudo username
groups username

Swich To root and edit sudoers file

sudo -
nano /etc/sudoers

Add user below User Privilege Specification

# User privilege specification
root	ALL=(ALL:ALL) ALL
ricky  ALL=(ALL:ALL) ALL