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.