
You can test and verify this by getting into “root” with the new user and running any sudo command. The “Username” will be the username of the user to be added. To add a user into the “wheel” group, use the following: usermod -aG wheel Username The command should look like this instead: %wheel ALL=(ALL) ALL If you see the # sign, delete it since it is used for disabling commands by marking the command as a comment. Scroll through it and look for this: # %wheel ALL=(ALL) ALL
#Add sudoers how to
How to Add Users into the Wheel Groupįirst, check if the “wheel” group is enabled or not with the visudo command.Īfter using the command, you will see a config file open. This step works for RedHat based distribution systems, especially. The sudoers file is basically a config file containing data about the users, groups, and their level of privileges granted.Īnother method is to add users into the “wheel” group which is provided by CentOS. One method to add users is by adding them to the sudoers file. The command ‘sudo’ means superuser do and it enables users to run commands as the “root” user. CentOS offers the ‘sudo’ command for such cases.

If another “root” user is required in the workspace, there are certain steps that you need to follow before adding users. One such example is the “root” user in CentOS.


More so if your team is working on Linux systems since it holds a greater capacity of editing data at hardware levels. When it comes to a professional or technical workspace, dividing privileges to run commands becomes necessary.
