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
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Ubuntu,
- Install Oh My Zsh on Ubuntu Docker complete steps
- Installing Home-brew on Ubuntu
- Install Golang (Go) on Ubuntu
- Install specific JRE on Ubuntu using apt
- How to stop/start/restart apache server using command [Ubuntu]
- How to install zsh shell on Ubuntu
- Quick steps to install Nginx on Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- Add new user in Ubuntu Linux using Terminal Command
- Fix Ubuntu /bin/sh: 1: zsh: not found error
- How to install Python on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to stop MongoDB Server running on Ubuntu
- Install postgres Client using apt-get command
- How to kill service running on a port on Ubuntu Linux
- [fix] openssl No such file or directory error C++
- Fix - sudo: systemctl: command not found
- Access Windows share folder in Ubuntu Device in Network
- Add or remove users from sudo group - Ubuntu
- Quickly install Apache Server on Ubuntu Linux
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
More Posts:
- How to Transpose a Square Matrix - Java Program - Java
- How to Run all Cells at Once Jupyter Notebook - Python
- How to verify if java is installed on the computer and get version detail - Java
- Queue Implementation in Java with Examples - Java
- How to copy Chrome alert popup text to clipboard - Chrome
- CSS: Apply opacity only for div background and not text - CSS
- Advanced ways to set Custom Settings for a Website on Safari for Mac - MacOS
- Resolve System.IO.PathTooLongException [Sharepoint C# .Net] - SharePoint