User not showing in WHM "Manage Wheel Group Users"

jnicol

Member
Nov 7, 2013
7
0
1
cPanel Access Level
Root Administrator
I have a user that belongs to the wheel group - let's call it "myusername".

When I look at the "Manage Wheel Group Users" area of WHM, the only user displayed in the top portion of the interface ("Remove a user from the wheel group") is root - myusername is not displayed in that list.

I have used the "Add a user to the wheel group" interface to add a different user to wheel, which was successful. But myusername isn't displayed even when I try re-adding it to wheel via WHM.

On the command line I confirmed that myusername does in fact belong to wheel:

Code:
groups myusername
outputs:

Code:
myusername : wheel
And myusername can use su so clearly it is in the wheel group.

Any idea why WHM would not recognize myusername as belonging to wheel? Or choose not to display it?
 

jnicol

Member
Nov 7, 2013
7
0
1
cPanel Access Level
Root Administrator
I think I may have figured this one out on my own. When I created the user I added it to the wheel group:

Code:
useradd myusername -g wheel
I'm guessing that since wheel is myusername's primary group, the user can't be removed from the group, which is why WHM doesn't display it. Am I on the right track?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

Try adding a username without the "wheel" flag and see if it's then visible in Web Host Manager under "Manage Wheel Group Users". You should see if there if the wheel flag is not added upon username creation.

Thank you.
 

jnicol

Member
Nov 7, 2013
7
0
1
cPanel Access Level
Root Administrator
Hello :)

Try adding a username without the "wheel" flag and see if it's then visible in Web Host Manager under "Manage Wheel Group Users". You should see if there if the wheel flag is not added upon username creation.

Thank you.
I did this test earlier, and that's exactly right - without the "-g wheel" flag the user can be added/removed from wheel via WHM. Thanks for confirming my suspicion.

I think I actually prefer that my user can't be removed from wheel via WHM, since it ensures I never accidentally remove it's su privileges. But it's good to know why it isn't shown in the list to begin with.

I have a suggestion: users whose primary group is wheel should still be displayed in "Manage Wheel Group Users", but they should be grayed out, like root is, so that they can't be removed from wheel.