The sudo command allows authorized users to perform commands as another user, which is by default the root user. There are two ways to add a user to sudoers : you can add this user to the sudo group or you can add this user to the sudoers file located at etc. Here are the details of the two methods.
How To Create a New Sudo-enabled User on CentOS 8 Mar 30, 2020 How To Edit the Sudoers File | DigitalOcean Jul 07, 2020
How to Add a User to Sudoers in CentOS Linux
sudo usermod -aG sudo
Nov 20, 2019
Nov 04, 2019 How To Add Users To The Sudoer File On Linux Jul 04, 2018 Linux - Add User to Sudoers List - JournalDev Steps to Add a User to sudoers list in Linux 1. Create a User. Let’s first create a user for our tutorial. This is an optional step. If you already have a user to add to the sudoers list, then you can skip this step. We will use adduser command to create a user. You should be logged in as root or a user with sudo privileges to run these commands. Configuring the linux Sudoers file - Linux.com Jan 15, 2011