The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User not showing in WHM "Manage Wheel Group Users"

Discussion in 'General Discussion' started by jnicol, Nov 7, 2013.

  1. jnicol

    jnicol Member

    Joined:
    Nov 7, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. jnicol

    jnicol Member

    Joined:
    Nov 7, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    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.
     
  4. jnicol

    jnicol Member

    Joined:
    Nov 7, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page