Edrick Smith

Well-Known Member
Oct 9, 2017
51
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
Hello when deploying cPanel on Ubuntu as centOS will no longer be supported. What is to be the root / main WHM login? I see that I can use the URL generated after installation to login for the first time. But are you then to change / create a root password from WHM? As the interface its self won't allow login as there is no set root password in Ubuntu?

I have it successfully installed and can access WHM from the URL generated via the session. However login in as the ubuntu user created at installation does not work.
 

Edrick Smith

Well-Known Member
Oct 9, 2017
51
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
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
 
Last edited:

Edrick Smith

Well-Known Member
Oct 9, 2017
51
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
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 :)
 

quietFinn

Well-Known Member
Feb 4, 2006
1,390
177
193
Finland
cPanel Access Level
Root Administrator
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.
 
  • Like
Reactions: cPanelAnthony

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
583
53
103
Houston, TX
cPanel Access Level
Root Administrator
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.
 

Edrick Smith

Well-Known Member
Oct 9, 2017
51
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
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
 

quietFinn

Well-Known Member
Feb 4, 2006
1,390
177
193
Finland
cPanel Access Level
Root Administrator
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"?
 
  • Like
Reactions: cPanelAnthony

Edrick Smith

Well-Known Member
Oct 9, 2017
51
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
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.