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.

Wheel Manager overwrites group membership

Discussion in 'General Discussion' started by shacker23, Aug 20, 2006.

  1. shacker23

    shacker23 Well-Known Member

    Feb 20, 2005
    Likes Received:
    Trophy Points:
    Just discovered that the WHM wheel manager overwrites any previously existing group membership. If you have any custom groups and have added users to to them, then use WHM wheel manager to add a user to wheel, they'll lose their existing group membership. In my case, I have a custom group called "tusers" (trusted users) who are allowed to run the wget binary.

    As root:

    #usermod -G tusers foo
    # groups foo
    > foo : foo tusers
    [ foo is not in wheel ]

    Now go to WHM | Manage Wheel users, add user foo to wheel. Then go back to shell.

    # groups foo
    > foo : foo wheel
    [ foo is in wheel but no longer in tusers ]

    Since only a wheel member can "su -", seems like the only way to solve this is to do it all from the shell, and not use WHM. This works:

    # usermod -G tusers,wheel foo <-- comma separated list of groups
    # groups foo
    > foo : foo wheel tusers

    Just thought this might be useful for someone, since it confounded me for a while.

Share This Page