Add existing user to sudoers

Our Score
Click to rate this post!
[Total: 0 Average: 0]
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
Our Score
Click to rate this post!
[Total: 0 Average: 0]

Comments

Leave a Reply

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

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