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.

root locked out; no access to whm & ssh

Discussion in 'Security' started by aedaenet, Apr 15, 2014.

  1. aedaenet

    aedaenet Registered

    Joined:
    Apr 15, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi guys,

    I recently amended my secirity options in WHM activating security questions and disallow untrusted IP's. After that everything worked fine for a number of days until today. I'm not able to login using WHM as root (The login is invalid) nor SSH (access denied).

    What would you guys advise me to do?

    PS I don't have an SLA with hosting provider, so they are not able to help me with this and I do not have direct (physical) access to the server as well.

    PS 2: I tried using su to access root in ssh but it says something like jailshell not allowed

    Thanks for your time!
     
  2. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    You may try with another IP so that you will be asked all those security questions all again and get access to the server.

    Other option would be to reset the password from single user mode and edit /var/cpanel/cpanel.config to make the following changes. It could be 1. I haven't checked the config myself but for in general search for SecurityPolicy

    SecurityPolicy::PasswordStrength=0 SecurityPolicy::SourceIPCheck=0
     
  3. aedaenet

    aedaenet Registered

    Joined:
    Apr 15, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks so much, I'll try that!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Also, once you regain access, check to see if the "root" user was locked out by cPhulk Brute Force detection (assuming it's enabled) and add your IP to it's white list if possible.

    Thank you.
     
Loading...

Share This Page