Add existing user to sudoers

If our user is not created add it with 

sudo useradd -m username (m creates home for it)

then set password with
 
passwd username

then
sudo usermod -a -G sudo username  (-a to append a group, -G is for needed group itself, in our example sudo, could be any group)

groups username will show the groups of the specific user

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.