Adding a user in linux and making it a sudo user:
Create the user first: $
adduser <username>
Check if sudo is available as a group: $
cat /etc/group
Add the user to sudo group: $
usermod -aG sudo <username>
Last updated
Create the user first:
$ adduser <username>
Check if sudo is available as a group: $ cat /etc/group
Add the user to sudo group:
$ usermod -aG sudo <username>
Last updated