Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    604
    Likes Received:
    42
    Trophy Points:
    28
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,885
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice