SSH direct root logins are permitted

popeye

Well-Known Member
May 23, 2013
364
2
18
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 ?
 

quizknows

Well-Known Member
Oct 20, 2009
1,008
86
78
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
There is big list which do i add ? shame i cant create my own one for root.

How do i elevate permissions
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.