Main Menu

Search

LINUX: How To Grant Root Sudoer Access To A User? (Add User To Sudoers)

Following command can be executed to grant sudo access to a user. In below command we are granting testuser sudo access.

usermod -aG wheel testuser 
Validate that the user has sudo access using below command.
sudo -l -U testuser 
You should see output similar to below which means that the user has sudo access.
User testuser may run the following commands on linux-host:
(ALL) ALL

Products to which Article Applies

All Linux Operating Systems 

Search Keywords: sudo access sudoer add adding grant granting all command commands file files how to enable enabling root full user users local

Article Author: Tarun Boyella

 

No comments:

Post a Comment