Skip to main content

Ubuntu Intall WHM Root Login

Comments

11 comments

  • quietFinn
    You can change root pasword in WHM -> Server Configuration -> Change Root Password.
    0
  • Edrick Smith
    You can change root pasword in WHM -> Server Configuration -> Change Root Password.

    So I understand that I can change it there, but is that the procedure? The fact that a clean install of Ubuntu / cPanel means that there is no root password. So the correct method is to install on a clean ubuntu setup, use the link to login and then set the password for the first time? As Ubuntu is still unofficial for cPanel there doesn't seem to be any mention of this in the setup procedure So it seem basically as soon as you install cPanel you can no longe SSH into the server as a) Login via ROOT is not enabled I would assume via SSH as its ubuntu? b) Login via the local ubuntu user that is created at install is then somehow disabled This is based on two clean installations of Ubuntu and cPanel
    0
  • Edrick Smith
    So this makes no sense to me, but someone correct me if I'm wrong and just assumed to know this... So after completing a clean install of Ubuntu and installing cPanel to it, you cannot login to cape OTHER than using the URL listed in the install (as root is not enabled in ubuntu). So if that link expires you then need to generate a new URL session login. However if you then login via that session login and change the root password, you can "then" login to WHM with root no problem. However at that point you can NO LONGER 1) Login to ubuntu with the user created at installation via SSH nor Local session 2) You cannot login via ssh as root, but you can login via WHM. I have to ask this like this, because I have wasted an unbelievable amount of time on this. Basically it seems as soon as I install ubuntu, I can login correctly with the created ubuntu user I can SU no problem. However once I install cPanel, I cannot login with the generated ubuntu user, so I thus have to login via the generated URL, then once I change the password for root. I can no longer connect into ubuntu via local console or SSH via the ubuntu created user nor the cPanel root user (assuming because ssh login via root is disabled by ubuntu) So I'm just a bit confused if I'm somehow screwing this up every time or over looking something :)
    0
  • quietFinn
    So after completing a clean install of Ubuntu and installing cPanel to it, you cannot login to cape OTHER than using the URL listed in the install (as root is not enabled in ubuntu). So if that link expires you then need to generate a new URL session login.

    After you did a clean install of Ubuntu you got the root password? After that, as root user, you installed cPanel? After that you still have the root password? I have never installe Ubuntu so maybe I am missing something.
    0
  • cPanelAnthony
    I would like to know the information quietFinn asked as well. Installing cPanel shouldn't make changes to your users or sudoers. You should install cPanel while logged in as root. You should be able to access WHM and SSH as root, and you should still be able to use your Ubuntu user with sudo as well. Knowing this information might shed some light on the problem.
    0
  • Edrick Smith
    So that then should be the issue :) Its a clean install of Ubuntu so there is no root enabled, the installation was being run with su to root i then followed as you said and changed the root password from WHM on the second test installation however on both installs after installing WHM the standard user created at installation stopped working. so then the proper procedure for a clean install with Ubuntu is to enable root first then install
    0
  • quietFinn
    So that then should be the issue :) Its a clean install of Ubuntu so there is no root enabled, the installation was being run with su to root

    When you "su to root" you need the root password, and when you are in the root shell you are also able to change the root password. What do you mean by "there is no root enabled"?
    0
  • Skhilled44
    0
  • Edrick Smith
    When you "su to root" you need the root password, and when you are in the root shell you are also able to change the root password. What do you mean by "there is no root enabled"?

    Sorry I meant to say sudo :) All of the installation instructions ive been able to find pertaining to Ubuntu cPanel installation have said to just sudo for the install. So I will attempt a clean install with enabling the root user ahead of time and then running installation as root.
    0
  • Edrick Smith
    0
  • vacancy
    Yes, I noticed this problem too. Unable to login to ssh root login after installing cpanel. For solution In /etc/ssh/sshd_config file usepam should be set as yes > no. Then the sshd service should be restarted.
    0

Please sign in to leave a comment.