Quick tip: Add a user to the sudoers group

shell prompt image

Situation: A new user on your server needs to have admin, or ‘root’ user access. Rather than enabling the root account, or giving out the password details to your elevated account, add the new user to the sudoers group, and hey presto – they will get sudo access with their own account and password:

usermod -aG sudo <username_of_person_you_want_to_give_root_to>

Leave a Reply

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