Quick tip: Add a user to the sudoers group

shell prompt imageshell 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>

Be the first to comment on "Quick tip: Add a user to the sudoers group"

Leave a Reply