Skip to main content

How to Manage Wheel Group Users for Root Access

Manage the list of users with root-level privileges on your server by modifying the wheel group. This process allows a server administrator to control which local accounts are granted elevated permissions in the WHM environment.

Manage the list of users with root-level privileges on your server by modifying the wheel group. This process allows a server administrator to control which local accounts are granted elevated permissions in the WHM environment.

Before you begin

You will need:

  • Root access to the server

  • Access to the WHM interface

Manage Wheel Group Users

To manage which users are part of the wheel group for root access, you must perform this action via the command line.

  1. Log in to your server via SSH as the root user.

  2. Use the usermod command to add or remove a user from the wheel group.

To add a user to the wheel group, use the following command:

usermod -aG wheel username

Replace username with the actual account name of the user you wish to grant root access to.

To remove a user from the wheel group, use the following command:

gpasswd -h wheel username

Replace username with the account name of the user you wish to remove from the root access group.

Confirm the result

To verify the changes, you can check the members of the wheel group by running:

grep '^wheel:' /etc/group

The command will return a list of all users currently assigned to the wheel group. Confirm that the specific user you modified appears or no longer appears in that list.

Limitations

This procedure affects the system-level permissions of the user account. Granting a user access to the wheel group provides them with the ability to perform administrative actions that can impact the entire server. Only grant this access to trusted accounts that require full administrative control.

Did this answer your question?