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.

SSH direct root logins are permitted

Discussion in 'Security' started by popeye, Nov 26, 2013.

  1. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi,

    cPanel Security Advisor tells me SSH direct root logins are permitted. change PermitRootLogin to no

    but if i change it to no how will i login as root ?
     
  2. Deehem

    Deehem Member
    PartnerNOC

    Joined:
    Jul 6, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Preston, UK
    cPanel Access Level:
    DataCenter Provider
    You would create another user, add the new user to the wheel group and elevate permissions.
     
  3. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator

    There is big list which do i add ? shame i cant create my own one for root.

    How do i elevate permissions
     
  4. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    942
    Likes Received:
    57
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Add any normal user to the "wheel" group (can be done in WHM).

    Once that is done, SSH in as the normal user. When you get a prompt issue the su command to get root, best to use:

    su -

    with the dash, so that you get roots login environment variables. You will be prompted for roots password for the su command, and then you will be at a root shell.
     
  5. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Adding the user to the wheel group will elevate the access to the user so that the user can then access root via "su".

    Thank you.
     
Loading...

Share This Page