How to Add user to the sudo group on Linux

 

In this post, We will add a standard user with sudo group on ubuntu linux, Its will also work with CentOS/redhat.

 

Step 1: Check User group details

$ sudo id username


 

Step 2: Add User in sudo Group

 $ sudo usermod -aG sudo username 

 

Step 3: Verify the group with user

 $ id username

  

 

Conclusion

We have successfully added user in sudo group Ubuntu 18.04 server.

 

How to Add user to the sudo group on Linux

One thought on “How to Add user to the sudo group on Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top