In order to add a User as a /etc/sudoer to run sudo commands on Ubuntu Linux, you can run the below command in the Terminal.
sudo adduser <user-name> sudo
Example:
# sudo adduser mike sudo
Adding user `mike' to group `sudo' ...
Adding user mike to group sudo
Done.

Let's verify the /etc/sudoer file.
# getent group sudo
sudo:x:27:mike
Documentation: https://help.ubuntu.com/community/RootSudo#Allowing_other_users_to_run_sudo
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!