Steps to give sudo permission to a user in centos

Step 1:- Login as a sudo user.

Step 2:- Open visudo file.

After opening the file scroll down till you find the option ## Allow root to run any commands anywhere

Add the user name and give the permission.

Close the editor by Press the Esc button, Colon (: ) wq buttons.