Skip to main content

Password for root access?

Comments

5 comments

  • Andrew Mathews
    Hello, I assume you are running CentOS so I would try
    sudo passwd root
    Then once you reboot and get in you may be able to login to WHM, I only know how to log in with SSH key once you have already had a root password.
    0
  • Vipin Singh
    If it is cent os you can also first login in SSH via your key as root. Then use: passwd root and change as per your choice of password. Now you can use this generated password for WHM login.
    0
  • sktest123
    Via shell just sudo to root, create a passwd for root, log into whm via root. For future (probably) you can edit sshd_config you login via root without key.
    0
  • cPanelKenneth
    What I do on my personal servers is grant my account (which isn't used for hosting websites) reseller privileges: echo "cpanelkenneth: all" >> /var/cpanel/resellers (substitute your own account name for cpanelkenneth). Now I can log on to WHM with root privileges, without making the root account available. More info is available here: How to Create a WHM Reseller Without An Associated Domain - cPanel Knowledge Base - cPanel Documentation
    0
  • Todesengel
    What I do on my personal servers is grant my account (which isn't used for hosting websites) reseller privileges: echo "cpanelkenneth: all" >> /var/cpanel/resellers (substitute your own account name for cpanelkenneth). Now I can log on to WHM with root privileges, without making the root account available. More info is available here:
    0

Please sign in to leave a comment.