If you dont already havve sudo installed , install it using:-
apt-get update
apt-get install sudo
Make sure u already created new user , if not u can create a new user using:-
adduser username
Then use the the usermod
command to add the new user to the sudo group:-
usermod -a -G sudo username
Note :- if above command didnt work , put full path of command instead:-
/usr/sbin/usermod -a -G sudo username
You Can test if the user belongs to the sudo group by using groups command inside the users account for example:-
limiteduser@myserver:~$ groups
limiteduser sudo
Congratulations u have successfully Created a new user With Sudo permissions
Pingback: Create new user Debian 10 – linuxguides.net