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.

Su to root denied but can't add to wheel group either!

Discussion in 'Security' started by Stefaandk, Jul 28, 2016.

  1. Stefaandk

    Stefaandk Registered

    Joined:
    Jul 28, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    I rebuilt one of my servers from scratch using Centos 7.x

    I typically disable root login in sshd_config, login as a different user then su to root, I now get permission denied, Ok used to that as well so I then add root to the wheel group to fix it.

    However now I"m getting:

    You cannot alter the root account!

    I can't recall ever having that problem and looking through troubleshooting the not able to su to root issue that is very much the suggested fix, it's also what I have set on my other cPanel servers, root is in the wheel group!! I'm possibly overlooking something blatantly obvious here but I'm starting to waste too much time on this so some feedback is appreciated.

    Thank you.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    323
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,
    Have you created another user to access server ?

    If you have disabled the root login then you need to add another user in wheel group and access server using that wheel user.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page