Verifying if the Wheel Group is Enabled

To verify whether CentOS 7 installation has the wheel group enabled or disabled:
  1. To open the configuration file, execute the following command:
    vi sudo
  2. Search for the following entry in the configuration file:
    ## Allows people in group wheel to run all commands %wheel ALL=(ALL) AL
    If the second line begins with the # sign, it indicates that the line is marked as a comment and the feature is disabled.
  3. Delete the # sign at the beginning of the second line as given below.
    %wheel ALL=(ALL) ALL
  4. Save the file and exit the editor.
    Note: If there is no # sign at the beginning of the line, do not make any changes. The wheel group is already enabled.