Create new sudo user debian 10

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

Referrals

1 thought on “Create new sudo user debian 10”

  1. Pingback: Create new user Debian 10 – linuxguides.net

Leave a Comment

Your email address will not be published. Required fields are marked *